From: Justin Wind Date: Tue, 26 Sep 2017 17:45:51 +0000 (-0700) Subject: fix bug in sqs-action update X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5815d399b316d2f6c16d13d066a62bda8fb2cfeb;p=awsible fix bug in sqs-action update --- 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()