Skip to content

Commit

Permalink
fixing critical error in image overwrite in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrobs committed Mar 7, 2017
1 parent 658e029 commit ef045e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions climulon/handlers/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def deploy_handler(args):
# the master config file
deployImages = {}

if imageArgs is None:
if imageArgs is not None:
# "Var=image" regex
argRe = '^[\S]+=[\S]+$'
argRePattern = re.compile(argRe)
Expand All @@ -30,8 +30,6 @@ def deploy_handler(args):
'(?::(?![.-])[a-zA-Z0-9_.-]{1,128})?$')
imageRePattern = re.compile(imageRe)



for imageArg in imageArgs:
if argRePattern.match(imageArg):
words = imageArg.split("=")
Expand Down

0 comments on commit ef045e2

Please sign in to comment.