summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lib_openshift/library')
-rw-r--r--roles/lib_openshift/library/oc_adm_policy_group.py2
-rw-r--r--roles/lib_openshift/library/oc_adm_policy_user.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_openshift/library/oc_adm_policy_group.py b/roles/lib_openshift/library/oc_adm_policy_group.py
index 1a64812b1..3bc5dea0e 100644
--- a/roles/lib_openshift/library/oc_adm_policy_group.py
+++ b/roles/lib_openshift/library/oc_adm_policy_group.py
@@ -1948,7 +1948,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/library/oc_adm_policy_user.py b/roles/lib_openshift/library/oc_adm_policy_user.py
index f0f80f25f..1ac9bf54d 100644
--- a/roles/lib_openshift/library/oc_adm_policy_user.py
+++ b/roles/lib_openshift/library/oc_adm_policy_user.py
@@ -1947,7 +1947,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