From bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf Mon Sep 17 00:00:00 2001 From: James Falcon Date: Wed, 15 Dec 2021 20:16:38 -0600 Subject: Adopt Black and isort (SC-700) (#1157) Applied Black and isort, fixed any linting issues, updated tox.ini and CI. --- cloudinit/sources/helpers/upcloud.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'cloudinit/sources/helpers/upcloud.py') diff --git a/cloudinit/sources/helpers/upcloud.py b/cloudinit/sources/helpers/upcloud.py index 199baa58..e7b95a5e 100644 --- a/cloudinit/sources/helpers/upcloud.py +++ b/cloudinit/sources/helpers/upcloud.py @@ -169,7 +169,7 @@ def convert_to_network_config_v1(config): interface = { "type": "physical", "name": sysfs_name, - "mac_address": mac_address + "mac_address": mac_address, } subnets = [] @@ -182,10 +182,9 @@ def convert_to_network_config_v1(config): if config.get("dns"): LOG.debug("Setting DNS nameservers to %s", config.get("dns")) - nic_configs.append({ - "type": "nameserver", - "address": config.get("dns") - }) + nic_configs.append( + {"type": "nameserver", "address": config.get("dns")} + ) return {"version": 1, "config": nic_configs} @@ -216,8 +215,7 @@ def read_sysinfo(): server_uuid = dmi.read_dmi_data("system-uuid") if server_uuid: LOG.debug( - "system identified via SMBIOS as UpCloud server: %s", - server_uuid + "system identified via SMBIOS as UpCloud server: %s", server_uuid ) else: msg = ( -- cgit v1.2.3