From 57543ae4d4c2b2baead76c0d3b4ffb7bae907fa6 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Mon, 3 Apr 2017 16:25:37 -0400 Subject: [PATCH] Fixed name and selector to be mutually exclusive --- roles/lib_openshift/library/oc_obj.py | 2 +- roles/lib_openshift/src/ansible/oc_obj.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/lib_openshift/library/oc_obj.py b/roles/lib_openshift/library/oc_obj.py index 7f99dbbd03e..76c36f8a61e 100644 --- a/roles/lib_openshift/library/oc_obj.py +++ b/roles/lib_openshift/library/oc_obj.py @@ -1647,7 +1647,7 @@ def main(): force=dict(default=False, type='bool'), selector=dict(default=None, type='str'), ), - mutually_exclusive=[["content", "files"]], + mutually_exclusive=[["content", "files"],["selector", "name"]], supports_check_mode=True, ) diff --git a/roles/lib_openshift/src/ansible/oc_obj.py b/roles/lib_openshift/src/ansible/oc_obj.py index 701740e4fd5..4ace53c1e60 100644 --- a/roles/lib_openshift/src/ansible/oc_obj.py +++ b/roles/lib_openshift/src/ansible/oc_obj.py @@ -23,7 +23,7 @@ def main(): force=dict(default=False, type='bool'), selector=dict(default=None, type='str'), ), - mutually_exclusive=[["content", "files"]], + mutually_exclusive=[["content", "files"],["selector", "name"]], supports_check_mode=True, )