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