summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-27 19:28:26 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-28 09:29:21 -0500
commit05cad0edaf365e5080b54d48ceb3f75396b78e4e (patch)
tree188956b95e888b9d34ebc7632b9a312b21121a7b /roles/lib_openshift/src
parent74e890482f2be933634286f8b4cf488287cf6d39 (diff)
downloadopenshift-05cad0edaf365e5080b54d48ceb3f75396b78e4e.tar.gz
openshift-05cad0edaf365e5080b54d48ceb3f75396b78e4e.tar.bz2
openshift-05cad0edaf365e5080b54d48ceb3f75396b78e4e.tar.xz
openshift-05cad0edaf365e5080b54d48ceb3f75396b78e4e.zip
Fixed logic error. Ensure both svc and dc exist.
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r--roles/lib_openshift/src/class/oc_adm_registry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/src/class/oc_adm_registry.py b/roles/lib_openshift/src/class/oc_adm_registry.py
index 06de2ba12..92ebda235 100644
--- a/roles/lib_openshift/src/class/oc_adm_registry.py
+++ b/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