X-Git-Url: http://git.squeep.com/?p=awsible;a=blobdiff_plain;f=sqs-action.py;h=7cad07910214cb4f3fb0cf85420a29fa55f939ee;hp=3a5d8bed4d5d2476084fa129c04e74eee2f5410f;hb=5815d399b316d2f6c16d13d066a62bda8fb2cfeb;hpb=156c7b5ff129f9a4995d2185cc7a06902680b34c diff --git a/sqs-action.py b/sqs-action.py index 3a5d8be..7cad079 100755 --- a/sqs-action.py +++ b/sqs-action.py @@ -45,7 +45,7 @@ def handleEvent(message, event, ASGName, InstanceId): notice += ['SUCCESS'] message.delete() if os.path.isfile(os.path.join(args.playbooks, ASGName + '-post.yml')): - postnotice = [' '.join(ASGName, 'post', event)] + postnotice = [' '.join([ASGName, 'post', event])] cmd = [ANSIBLE_PLAYBOOK_CMD, ASGName + '-post.yml'] p = Popen(cmd, cwd=args.playbooks, stdout=PIPE, stderr=PIPE) (stdoutdata, stderrdata) = p.communicate()