diff --git a/plugins/modules/nxos_user.py b/plugins/modules/nxos_user.py index 060a6b7c0..8bc9cd45a 100644 --- a/plugins/modules/nxos_user.py +++ b/plugins/modules/nxos_user.py @@ -411,8 +411,11 @@ def update_objects(want, have): updates.append((entry, item)) return updates + def get_configured_usernames(module): - config_output = run_commands(module, [{"command": "show running-config | section ^username", "output": "text"}]) + config_output = run_commands( + module, [{"command": "show running-config | section ^username", "output": "text"}] + ) usernames = set() for line in config_output[0].splitlines(): if line.startswith("username "): @@ -420,6 +423,7 @@ def get_configured_usernames(module): usernames.add(username) return usernames + def main(): """main entry point for module execution""" element_spec = dict(