summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-09-29 19:44:26 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-29 19:44:27 +0000
commit2e6be7473d11f14d62ad1aa1d76f2e0c99327424 (patch)
treeb85dabbaba4c6650a4fb0fcb47b45c43185e5e26 /deploy
parentd1f2969eed092f182cc746ca1d06337d71a8215d (diff)
parente4ee518727720813a99574deb58c5bff6b97d5f3 (diff)
Merge "check read access instead of isfile() for Fuel ISO"
Diffstat (limited to 'deploy')
-rw-r--r--deploy/common.py2
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)