fix bug in sqs-action update
authorJustin Wind <j.wind@partner.samsung.com>
Tue, 26 Sep 2017 17:45:51 +0000 (10:45 -0700)
committerJustin Wind <j.wind@partner.samsung.com>
Tue, 26 Sep 2017 17:45:51 +0000 (10:45 -0700)
sqs-action.py

index 3a5d8bed4d5d2476084fa129c04e74eee2f5410f..7cad07910214cb4f3fb0cf85420a29fa55f939ee 100755 (executable)
@@ -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()