Browse Source

Fix file check conditional.

Andrew Butcher 9 years ago
parent
commit
753c0e31a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      filter_plugins/oo_filters.py

+ 1 - 1
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']))