diff options
author | John Estabrook <jestabro@vyos.io> | 2025-02-19 09:55:37 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2025-02-19 11:59:36 -0600 |
commit | 1316b470886c77e52905cdeabdb5aedd761a1555 (patch) | |
tree | ec822748477dd33c76e56e3c4576130707191d71 | |
parent | 32c4beae5d4869974bc151a4fb11c0f62d21c38c (diff) | |
download | vyos-1x-1316b470886c77e52905cdeabdb5aedd761a1555.tar.gz vyos-1x-1316b470886c77e52905cdeabdb5aedd761a1555.zip |
T7182: normalize formatting
-rwxr-xr-x | src/etc/netplug/vyos-netplug-dhcp-client | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/etc/netplug/vyos-netplug-dhcp-client b/src/etc/netplug/vyos-netplug-dhcp-client index 83fed70f0..8afc9fda9 100755 --- a/src/etc/netplug/vyos-netplug-dhcp-client +++ b/src/etc/netplug/vyos-netplug-dhcp-client @@ -26,14 +26,15 @@ from vyos.ifconfig import Section from vyos.utils.boot import boot_configuration_complete from vyos.utils.commit import commit_in_progress from vyos import airbag + airbag.enable() if len(sys.argv) < 3: - airbag.noteworthy("Must specify both interface and link status!") + airbag.noteworthy('Must specify both interface and link status!') sys.exit(1) if not boot_configuration_complete(): - airbag.noteworthy("System bootup not yet finished...") + airbag.noteworthy('System bootup not yet finished...') sys.exit(1) interface = sys.argv[1] @@ -50,5 +51,7 @@ in_out = sys.argv[2] config = ConfigTreeQuery() interface_path = ['interfaces'] + Section.get_config_path(interface).split() -_, interface_config = get_interface_dict(config, interface_path[:-1], ifname=interface, with_pki=True) +_, interface_config = get_interface_dict( + config, interface_path[:-1], ifname=interface, with_pki=True +) Interface(interface).update(interface_config) |