cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #06505
[Merge] ~powersj/cloud-init:fix/pyflakes-local-var into cloud-init:master
Joshua Powers has proposed merging ~powersj/cloud-init:fix/pyflakes-local-var into cloud-init:master.
Commit message:
pyflakes: remove unused variable
Requested reviews:
cloud-init commiters (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/371366
tip-pyflakes is currently failing: https://paste.ubuntu.com/p/WYRRmFzmPF/
--
Your team cloud-init commiters is requested to review the proposed merge of ~powersj/cloud-init:fix/pyflakes-local-var into cloud-init:master.
diff --git a/cloudinit/config/cc_ssh.py b/cloudinit/config/cc_ssh.py
index 53f6939..fdd8f4d 100755
--- a/cloudinit/config/cc_ssh.py
+++ b/cloudinit/config/cc_ssh.py
@@ -197,7 +197,7 @@ def handle(_name, cfg, cloud, log, _args):
hostkeys = get_public_host_keys(blacklist=host_key_blacklist)
try:
cloud.datasource.publish_host_keys(hostkeys)
- except Exception as e:
+ except Exception:
util.logexc(log, "Publishing host keys failed!")
try:
References