Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Fix getting service_name
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rabi committed May 4, 2021
1 parent b46a9f5 commit de8bfa8
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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':
Expand Down

0 comments on commit de8bfa8

Please sign in to comment.