diff options
author | Jonas Bjurel <jonas.bjurel@ericsson.com> | 2016-09-29 19:44:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-29 19:44:27 +0000 |
commit | 2e6be7473d11f14d62ad1aa1d76f2e0c99327424 (patch) | |
tree | b85dabbaba4c6650a4fb0fcb47b45c43185e5e26 /deploy | |
parent | d1f2969eed092f182cc746ca1d06337d71a8215d (diff) | |
parent | e4ee518727720813a99574deb58c5bff6b97d5f3 (diff) |
Merge "check read access instead of isfile() for Fuel ISO"
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/common.py b/deploy/common.py index 07ad54372..51b70fe46 100644 --- a/deploy/common.py +++ b/deploy/common.py @@ -140,7 +140,7 @@ def warn(message): def check_file_exists(file_path): if not os.path.dirname(file_path): file_path = '%s/%s' % (CWD, file_path) - if not os.path.isfile(file_path): + if not os.access(file_path, os.R_OK): err('ERROR: File %s not found\n' % file_path) |