2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-09-29 13:38:13 +00:00

Broaden except clause on automation check

For whatever reason, we can't seem to specifically catch
the CalledProcessError and have to resort to generic Exception.
This commit is contained in:
Jarrod Johnson
2025-02-06 10:44:59 -05:00
parent 2fcfbe9774
commit 52497d7d95

View File

@@ -223,7 +223,7 @@ if __name__ == '__main__':
try:
sshutil.prep_ssh_key('/etc/confluent/ssh/automation')
print('OK')
except subprocess.CalledProcessError:
except Exception:
emprint('Failed to load confluent automation key, syncfiles and profile ansible plays will not work (Example resolution: osdeploy initialize -a)')
os.kill(int(sshutil.agent_pid), signal.SIGTERM)
fprint('Checking for blocked insecure boot: ')