diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-03-16 14:53:27 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-03-21 11:29:46 +0100 |
commit | e8c7a48c443f2327470fac0f4fa5ef1f6dced29f (patch) | |
tree | 882be0456a2bf07ecfef03c7aed32e6ef3793323 /roles | |
parent | a5202573a27587233886d62db113cc3cab0a74fa (diff) | |
download | openshift-e8c7a48c443f2327470fac0f4fa5ef1f6dced29f.tar.gz openshift-e8c7a48c443f2327470fac0f4fa5ef1f6dced29f.tar.bz2 openshift-e8c7a48c443f2327470fac0f4fa5ef1f6dced29f.tar.xz openshift-e8c7a48c443f2327470fac0f4fa5ef1f6dced29f.zip |
Rename _ns -> node_selector
There doesn't seem to be a good reason for the underscore prefix.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/lib_openshift/library/oc_project.py | 6 | ||||
-rw-r--r-- | roles/lib_openshift/src/class/oc_project.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/lib_openshift/library/oc_project.py b/roles/lib_openshift/library/oc_project.py index 6cf993d64..7700a83a3 100644 --- a/roles/lib_openshift/library/oc_project.py +++ b/roles/lib_openshift/library/oc_project.py @@ -1547,9 +1547,9 @@ 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']) + node_selector = ','.join(params['node_selector']) pconfig = ProjectConfig( params['name'], @@ -1560,7 +1560,7 @@ class OCProject(OpenShiftCLI): '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': {'value': node_selector, 'include': True}, }, ) diff --git a/roles/lib_openshift/src/class/oc_project.py b/roles/lib_openshift/src/class/oc_project.py index 4dd231198..9ad8111a8 100644 --- a/roles/lib_openshift/src/class/oc_project.py +++ b/roles/lib_openshift/src/class/oc_project.py @@ -97,9 +97,9 @@ 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']) + node_selector = ','.join(params['node_selector']) pconfig = ProjectConfig( params['name'], @@ -110,7 +110,7 @@ class OCProject(OpenShiftCLI): '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': {'value': node_selector, 'include': True}, }, ) |