Skip to content

Commit 46cf968

Browse files
sjpbelelaysh
andauthored
Apply suggestions from code review
Co-authored-by: Eric Le Lay <[email protected]>
1 parent 8efd2fb commit 46cf968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/ansible-ssh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if __name__ == "__main__":
4343
ansible_cmd = ['ansible', pattern, '-o', '-m', 'debug', '-a', module_args]
4444
try:
4545
output = subprocess.check_output(ansible_cmd, text=True)
46-
except (subprocess.CalledProcessError) as e:
46+
except (subprocess.CalledProcessError):
4747
msg = (f"[ERROR]: Is {pattern} missing from the inventory?")
4848
print(msg, file=sys.stderr)
4949
sys.exit(-1)
@@ -54,7 +54,7 @@ if __name__ == "__main__":
5454
expanded = json.loads(result)['msg']
5555
# can assume ansible_host exists b/c defined by terraform
5656
# can assume ansible_user exists b/c defined in common inventory
57-
57+
5858
cmd = shlex.split(expanded)
5959
if no_known_hosts:
6060
cmd = cmd[0:1] + NO_HOSTKEY_CHECK_OPTS + cmd[1:]

0 commit comments

Comments
 (0)