[Preflights][Fixed] Temporals not removed on success
This commit is contained in:
parent
77b7abc24b
commit
1b66992088
|
|
@ -174,10 +174,12 @@ class BasePreFlight(Registrable):
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
def exec_with_retry(self, cmd, exit_with=None):
|
def exec_with_retry(self, cmd, exit_with=None):
|
||||||
|
remove_tmps = False
|
||||||
try:
|
try:
|
||||||
ret = GS.exec_with_retry(cmd, exit_with)
|
ret = GS.exec_with_retry(cmd, exit_with)
|
||||||
|
remove_tmps = True
|
||||||
finally:
|
finally:
|
||||||
if GS.debug_enabled:
|
if GS.debug_enabled and not remove_tmps:
|
||||||
if self._files_to_remove:
|
if self._files_to_remove:
|
||||||
logger.error('Keeping temporal files: '+str(self._files_to_remove))
|
logger.error('Keeping temporal files: '+str(self._files_to_remove))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue