(out, err), proc = self.execute(command, retry = 1, with_lock = True)
- for d in dests:
+ # avoid RuntimeError that would result from
+ # changing loop subject during iteration
+ keys = list(dests.keys())
+ for d in keys:
if out.find(d) > -1:
del dests[d]
retcod = dests.values()
if PY3: retcod = list(retcod)
return retcod
-