Skip to content

Commit

Permalink
Fix ansible module cyc (broken python)
Browse files Browse the repository at this point in the history
  • Loading branch information
oglimmer committed Nov 17, 2016
1 parent 4e0e5dc commit be5d680
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ansible/modules/cyc
Expand Up @@ -30,6 +30,7 @@ def execCalcHash(fileName, dtype):
os.remove(tmpFileName)
return result

targetname = None
args_file = sys.argv[1]
args_data = file(args_file).read()
arguments = shlex.split(args_data)
Expand All @@ -47,9 +48,9 @@ for arg in arguments:
if key == "targetname":
targetname=value

if dtype == 'engine' && targetname is None:
if dtype == 'engine' and targetname is None:
targetname = "cyc"
if dtype == 'web' && targetname is None:
if dtype == 'web' and targetname is None:
targetname = "cyr"

latest_version=000
Expand Down

0 comments on commit be5d680

Please sign in to comment.