浏览代码

Fix oc group get

Fixes #8792
camabeh 6 年之前
父节点
当前提交
d66f04c7f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/lib_openshift/library/oc_group.py

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

@@ -1522,7 +1522,7 @@ class OCGroup(OpenShiftCLI):
         result = self._get(self.kind, self.config.name)
         if result['returncode'] == 0:
             self.group = Group(content=result['results'][0])
-        elif 'groups \"{}\" not found'.format(self.config.name) in result['stderr']:
+        elif 'groups.user.openshift.io \"{}\" not found'.format(self.config.name) in result['stderr']:
             result['returncode'] = 0
             result['results'] = [{}]