summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-11-05 19:54:25 -0500
committerAndrew Butcher <abutcher@redhat.com>2015-11-05 19:56:00 -0500
commit753c0e31a9e8adb84f6352aaef47d410abee307c (patch)
tree2389de50db8fb6728310a88338b7249fb87e9779
parentb56907db97edcb85aaf9816c3e603d311fd8f316 (diff)
downloadopenshift-753c0e31a9e8adb84f6352aaef47d410abee307c.tar.gz
openshift-753c0e31a9e8adb84f6352aaef47d410abee307c.tar.bz2
openshift-753c0e31a9e8adb84f6352aaef47d410abee307c.tar.xz
openshift-753c0e31a9e8adb84f6352aaef47d410abee307c.zip
Fix file check conditional.
-rw-r--r--filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 44872ba28..f4643270d 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -377,7 +377,7 @@ class FilterModule(object):
else:
certificate['names'] = []
- if not os.path.isfile(certificate['certfile']) and not os.path.isfile(certificate['keyfile']):
+ if not os.path.isfile(certificate['certfile']) or not os.path.isfile(certificate['keyfile']):
raise errors.AnsibleFilterError("|certificate and/or key does not exist '%s', '%s'" %
(certificate['certfile'], certificate['keyfile']))