From f835057ae48cef56e6ae1dbe41caa710abc3713e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 15 Oct 2018 11:14:59 -0400 Subject: [PATCH] Do not proceed to try to upload if file doesn't exist After relaying the error, it went ahead and attempted the update, contrary to any reasonable expectation. --- confluent_server/confluent/firmwaremanager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/firmwaremanager.py b/confluent_server/confluent/firmwaremanager.py index 6d04c503..6090f344 100644 --- a/confluent_server/confluent/firmwaremanager.py +++ b/confluent_server/confluent/firmwaremanager.py @@ -37,6 +37,7 @@ def execupdate(handler, filename, updateobj, type, owner, node): filename, socket.gethostname()) updateobj.handle_progress({'phase': 'error', 'progress': 0.0, 'detail': errstr}) + return if type == 'ffdc' and os.path.isdir(filename): filename += '/' + node + '.svcdata' try: