From d0373977b35464d15374f6abd7d8d80b03fd4365 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Jan 2024 09:08:28 -0500 Subject: [PATCH] Fix FFDC preflight checks The code was comparing two string constants, instead of a variable to a constant. Correct the problem to enable the preflight checks to work as intended. --- confluent_server/confluent/firmwaremanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/firmwaremanager.py b/confluent_server/confluent/firmwaremanager.py index a7713943..eb5d4c86 100644 --- a/confluent_server/confluent/firmwaremanager.py +++ b/confluent_server/confluent/firmwaremanager.py @@ -53,7 +53,7 @@ def execupdate(handler, filename, updateobj, type, owner, node, datfile): return if type == 'ffdc' and os.path.isdir(filename): filename += '/' + node - if 'type' == 'ffdc': + if type == 'ffdc': errstr = False if os.path.exists(filename): errstr = '{0} already exists on {1}, cannot overwrite'.format(