From 5815d399b316d2f6c16d13d066a62bda8fb2cfeb Mon Sep 17 00:00:00 2001
From: Justin Wind <j.wind@partner.samsung.com>
Date: Tue, 26 Sep 2017 10:45:51 -0700
Subject: [PATCH] fix bug in sqs-action update

---
 sqs-action.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
-- 
2.49.0