Skip to content

Commit

Permalink
Fix line length.
Browse files Browse the repository at this point in the history
  • Loading branch information
csmith committed Dec 31, 2016
1 parent c9cfd97 commit e4900e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker_rerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ def modify_labels(parser=None, args=None, container=None):
for label in args.label:
# Remove any existing label with the same key
prefix = label.split('=')[0]
container.args = [arg for arg in container.args if not arg.startswith('--label=%s=' % prefix)
and not arg == '--label=%s' % prefix] + ['--label=%s' % label]
container.args = [arg for arg in container.args if
not arg.startswith('--label=%s=' % prefix) and
not arg == '--label=%s' % prefix]
container.args.append('--label=%s' % label)


def modify_network(parser=None, args=None, container=None):
Expand Down

0 comments on commit e4900e8

Please sign in to comment.