Commit d79c0fb7 authored by Felix Seibert's avatar Felix Seibert
Browse files

fixing bug: reset errored commands list at the start of each iteration

parent dac4d9c6
......@@ -214,14 +214,15 @@ class OSDManager(object):
div_util.print_process_list(processes)
processes = div_util.run_commands(delete_replica_command_list)
# successfull_deletions = []
errored_deletions = []
while True:
if self.debug:
print("executing " + str(len(processes)) + " delete replica commands done. Results:")
div_util.print_process_list(processes)
# successful_deletions = []
errored_deletions = []
for process in processes:
# check the return code. if it is one, the replica could not be deleted, so we try again later.
if process[2] == 1:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment