mirror of
https://github.com/xcat2/confluent.git
synced 2025-09-29 05:28:23 +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:
@@ -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: ')
|
||||
|
Reference in New Issue
Block a user