summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorjupierce <jupierce@redhat.com>2017-03-02 14:40:33 -0500
committerjupierce <jupierce@redhat.com>2017-03-02 14:40:33 -0500
commit884e071e29223f6a2c883f992e9e8855b6900a8f (patch)
tree082c7399d5ed02526c63325d6790ce061ce43c8e /roles/lib_openshift/src
parent1604d8a739bd978cc7bacabae22f2a2c0860ec98 (diff)
downloadopenshift-884e071e29223f6a2c883f992e9e8855b6900a8f.tar.gz
openshift-884e071e29223f6a2c883f992e9e8855b6900a8f.tar.bz2
openshift-884e071e29223f6a2c883f992e9e8855b6900a8f.tar.xz
openshift-884e071e29223f6a2c883f992e9e8855b6900a8f.zip
Fixing checkout for bindings with -binding suffix
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r--roles/lib_openshift/src/class/oc_adm_policy_group.py2
-rw-r--r--roles/lib_openshift/src/class/oc_adm_policy_user.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/src/class/oc_adm_policy_group.py b/roles/lib_openshift/src/class/oc_adm_policy_group.py
index 1d6b2450a..afb066c77 100644
--- a/roles/lib_openshift/src/class/oc_adm_policy_group.py
+++ b/roles/lib_openshift/src/class/oc_adm_policy_group.py
@@ -89,7 +89,7 @@ class PolicyGroup(OpenShiftCLI):
return False
- elif '\"%s\" not found' % self.config.config_options['name']['value'] in results['stderr']:
+ elif self.config.config_options['name']['value'] in results['stderr'] and '" not found' in results['stderr']:
return False
return results
diff --git a/roles/lib_openshift/src/class/oc_adm_policy_user.py b/roles/lib_openshift/src/class/oc_adm_policy_user.py
index 8d2c5eadf..c9d53acfa 100644
--- a/roles/lib_openshift/src/class/oc_adm_policy_user.py
+++ b/roles/lib_openshift/src/class/oc_adm_policy_user.py
@@ -88,7 +88,7 @@ class PolicyUser(OpenShiftCLI):
return False
- elif '\"%s\" not found' % self.config.config_options['name']['value'] in results['stderr']:
+ elif self.config.config_options['name']['value'] in results['stderr'] and '" not found' in results['stderr']:
return False
return results