summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_system.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/modules/vyos_system.py')
-rw-r--r--plugins/modules/vyos_system.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/modules/vyos_system.py b/plugins/modules/vyos_system.py
index 9984154..4f0d5db 100644
--- a/plugins/modules/vyos_system.py
+++ b/plugins/modules/vyos_system.py
@@ -158,9 +158,13 @@ def spec_to_commands(want, have):
commands.append("delete system %s" % device_key)
for config in proposed:
if state == "absent" and config in current:
- commands.append("delete system %s '%s'" % (device_key, config))
+ commands.append(
+ "delete system %s '%s'" % (device_key, config)
+ )
elif state == "present" and config not in current:
- commands.append("set system %s '%s'" % (device_key, config))
+ commands.append(
+ "set system %s '%s'" % (device_key, config)
+ )
else:
if state == "absent" and current and proposed:
commands.append("delete system %s" % device_key)
@@ -186,7 +190,9 @@ def main():
domain_name=dict(type="str"),
domain_search=dict(type="list"),
name_server=dict(type="list", aliases=["name_servers"]),
- state=dict(type="str", default="present", choices=["present", "absent"]),
+ state=dict(
+ type="str", default="present", choices=["present", "absent"]
+ ),
)
argument_spec.update(vyos_argument_spec)