Merge "Setting default value of the 'default_values' argument" into stable/wallaby

This commit is contained in:
Zuul 2023-02-28 20:58:48 +00:00 committed by Gerrit Code Review
commit faaa3a5818
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ options:
- Used only when the keys aren't already defined within the role.
required: false
type: dict
default: {{}}
author:
- Jiri Podivin <jpodivin@redhat.com>
'''
@ -160,7 +161,7 @@ def run_module():
try:
roles_path = module.params['roles_path']
environment_path = module.params['environment_path']
default_values = module.params.get('default_values', {})
default_values = module.params['default_values']
role_name = module.params['role_name']
roles_path = os.path.join(roles_path, '{}.yaml'.format(role_name))