diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-03-21 09:46:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 09:46:42 -0500 |
commit | 76bd8834056a4e0885aeaec59f1d8d5c2c79d91b (patch) | |
tree | 3c19df316ed4d1efad7b63455fe3674dff7b3685 /roles/lib_openshift/src/class/oc_project.py | |
parent | 1c3bcb9054805127c983e2dd79f81a945c2ce9d8 (diff) | |
parent | ae22d7d5ed03d254b0ebf17a45a693668f10f8b5 (diff) | |
download | openshift-76bd8834056a4e0885aeaec59f1d8d5c2c79d91b.tar.gz openshift-76bd8834056a4e0885aeaec59f1d8d5c2c79d91b.tar.bz2 openshift-76bd8834056a4e0885aeaec59f1d8d5c2c79d91b.tar.xz openshift-76bd8834056a4e0885aeaec59f1d8d5c2c79d91b.zip |
Merge pull request #3680 from rhcarvalho/misc-fixes
Merged by openshift-bot
Diffstat (limited to 'roles/lib_openshift/src/class/oc_project.py')
-rw-r--r-- | roles/lib_openshift/src/class/oc_project.py | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/roles/lib_openshift/src/class/oc_project.py b/roles/lib_openshift/src/class/oc_project.py index 5f02957b7..9ad8111a8 100644 --- a/roles/lib_openshift/src/class/oc_project.py +++ b/roles/lib_openshift/src/class/oc_project.py @@ -97,19 +97,22 @@ class OCProject(OpenShiftCLI): def run_ansible(params, check_mode): '''run the idempotent ansible code''' - _ns = None + node_selector = None if params['node_selector'] is not None: - _ns = ','.join(params['node_selector']) - - pconfig = ProjectConfig(params['name'], - 'None', - params['kubeconfig'], - {'admin': {'value': params['admin'], 'include': True}, - 'admin_role': {'value': params['admin_role'], 'include': True}, - 'description': {'value': params['description'], 'include': True}, - 'display_name': {'value': params['display_name'], 'include': True}, - 'node_selector': {'value': _ns, 'include': True}, - }) + node_selector = ','.join(params['node_selector']) + + pconfig = ProjectConfig( + params['name'], + 'None', + params['kubeconfig'], + { + 'admin': {'value': params['admin'], 'include': True}, + 'admin_role': {'value': params['admin_role'], 'include': True}, + 'description': {'value': params['description'], 'include': True}, + 'display_name': {'value': params['display_name'], 'include': True}, + 'node_selector': {'value': node_selector, 'include': True}, + }, + ) oadm_project = OCProject(pconfig, verbose=params['debug']) |