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

Commit

Permalink
Don't hide tripleo_network_config logs
Browse files Browse the repository at this point in the history
By default in the tripleo_network_config role, sensitive
logs are hidden. In THT the parameter is set to false, so
logs are not hidden by default.

Update the inventory network config used with network-v2 to
also *not* hide the logs.

Change-Id: I063a2935e87799fccb5ec81b5f5bed67e8139445
(cherry picked from commit 1caf541)
  • Loading branch information
hjensas committed Sep 21, 2021
1 parent 7e9126c commit 3a0840d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def generate_ansible_inventory_network_config(result, module_opts, instances,
inventory[role].setdefault('hosts', dict())
role_vars = inventory[role].setdefault('vars', dict())
role_vars.setdefault('tripleo_network_config_with_ansible', True)
role_vars['tripleo_network_config_hide_sensitive_logs'] = False

for instance in instances:
if not instance.get('provisioned', True):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def test_generate_ansible_inventory_network_config(self):
'tripleo_network_config_template': '/foo/template.j2'}
},
'vars': {
'tripleo_network_config_hide_sensitive_logs': False,
'tripleo_network_config_with_ansible': True}
},
'RoleB': {
Expand All @@ -86,6 +87,7 @@ def test_generate_ansible_inventory_network_config(self):
'tripleo_network_config_template':
'templates/net_config_bridge.j2'}},
'vars': {
'tripleo_network_config_hide_sensitive_logs': False,
'tripleo_network_config_with_ansible': True}
}
}
Expand Down

0 comments on commit 3a0840d

Please sign in to comment.