Browse Source

Fixed logic error. Ensure both svc and dc exist.

Kenny Woodson 8 years ago
parent
commit
05cad0edaf

+ 1 - 1
roles/lib_openshift/library/oc_adm_registry.py

@@ -2259,7 +2259,7 @@ class Registry(OpenShiftCLI):
     def exists(self):
         '''does the object exist?'''
         self.get()
-        if self.deploymentconfig or self.service:
+        if self.deploymentconfig and self.service:
             return True
 
         return False

+ 1 - 1
roles/lib_openshift/src/class/oc_adm_registry.py

@@ -120,7 +120,7 @@ class Registry(OpenShiftCLI):
     def exists(self):
         '''does the object exist?'''
         self.get()
-        if self.deploymentconfig or self.service:
+        if self.deploymentconfig and self.service:
             return True
 
         return False