Skip to content

Commit

Permalink
Merge pull request #148 from jverhoeven/pullfix
Browse files Browse the repository at this point in the history
Fix for exception when pulling two instances for same repo
  • Loading branch information
mpetazzoni committed Aug 16, 2015
2 parents 14151aa + d3cddfd commit 9fb476e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maestro/plays/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,9 @@ def _run(self):
# Pull the image (this may be a no-op, but that's fine).
for dlstatus in self.container.ship.backend.pull(
stream=True, insecure_registry=insecure, **image):
percentage = self._update_pull_progress(dlstatus)
self.o.pending('... {:.1f}%'.format(percentage))
if dlstatus:
percentage = self._update_pull_progress(dlstatus)
self.o.pending('... {:.1f}%'.format(percentage))

if self._standalone:
self.o.commit(CONTAINER_STATUS_FMT.format(''))
Expand Down

0 comments on commit 9fb476e

Please sign in to comment.