2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

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.
This commit is contained in:
Jarrod Johnson 2018-10-15 11:14:59 -04:00
parent e9ba49a4aa
commit f2dd501de9

View File

@ -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: