From de8bfa8048a6005ea5af6f61d735edca5021e3eb Mon Sep 17 00:00:00 2001 From: ramishra Date: Tue, 4 May 2021 13:27:05 +0530 Subject: [PATCH] Fix getting service_name Module parameters are passed as 'None' when not provided and does not have a default. It works for other params as there are defaults. Change-Id: I694082fbdd1ace26628469b086556d2528bea458 --- .../ansible_plugins/modules/tripleo_service_vip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tripleo_ansible/ansible_plugins/modules/tripleo_service_vip.py b/tripleo_ansible/ansible_plugins/modules/tripleo_service_vip.py index a14ab2641..2727804e0 100644 --- a/tripleo_ansible/ansible_plugins/modules/tripleo_service_vip.py +++ b/tripleo_ansible/ansible_plugins/modules/tripleo_service_vip.py @@ -320,9 +320,9 @@ def run_module(): **openstack_module_kwargs() ) - stack = module.params.get('stack_name', 'overcloud') - service = module.params.get('service_name', 'all') - state = module.params.get('state', 'present') + stack = module.params.get('stack_name') + state = module.params.get('state') + service = module.params.get('service_name') or 'all' try: if state == 'present' and service == 'all':