From 52497d7d9571fe2521c39ac2ff19d4c9024f469a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Feb 2025 10:44:59 -0500 Subject: [PATCH] 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. --- confluent_server/bin/confluent_selfcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/confluent_selfcheck b/confluent_server/bin/confluent_selfcheck index f1de6c71..fe45f637 100755 --- a/confluent_server/bin/confluent_selfcheck +++ b/confluent_server/bin/confluent_selfcheck @@ -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: ')