2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-27 03:49:57 +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 48913218a6
commit f835057ae4

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: