diff options
author | Andrew Butcher <abutcher@redhat.com> | 2015-11-05 19:54:25 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2015-11-05 19:56:00 -0500 |
commit | 753c0e31a9e8adb84f6352aaef47d410abee307c (patch) | |
tree | 2389de50db8fb6728310a88338b7249fb87e9779 | |
parent | b56907db97edcb85aaf9816c3e603d311fd8f316 (diff) | |
download | openshift-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.py | 2 |
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'])) |