Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjunzhang2019 committed Jul 12, 2023
1 parent ecbcabd commit 5f69b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def execute_module(self):
result.pop('after', None)
new_config = get_new_config(commands, existing_radius_server_facts,
TEST_KEYS_formatted_diff)
result["after(generated)"] = new_config
result['after(generated)'] = new_config

if self._module._diff:
result['config_diff'] = get_formatted_config_diff(existing_radius_server_facts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def get_formatted_config_diff(exist_conf, new_conf):

bfr_list = list(bfr.split(',\n'))
aft_list = list(aft.split(',\n'))
diffs = context_diff(aft_list, bfr_list,
fromfile='after_config',
tofile='before_config')
diffs = context_diff(bfr_list, aft_list,
fromfile='before_config',
tofile='after_config')
formatted_diff = list()
for diff in diffs:
if diff.endswith('\n'):
Expand Down

0 comments on commit 5f69b72

Please sign in to comment.