From b9ab31ebd89cd298092ef88df4ae4560d5983959 Mon Sep 17 00:00:00 2001 From: Federico Feroldi Date: Mon, 10 Mar 2014 13:11:09 +0100 Subject: [PATCH] Fix for #6365: cloudformation module fails to update if stack exists --- library/cloud/cloudformation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/cloudformation b/library/cloud/cloudformation index e072f3923f..822bd6e250 100644 --- a/library/cloud/cloudformation +++ b/library/cloud/cloudformation @@ -250,7 +250,7 @@ def main(): operation = 'CREATE' except Exception, err: error_msg = boto_exception(err) - if 'AlreadyExistsException' in error_msg: + if 'AlreadyExistsException' in error_msg or 'already exists' in error_msg: update = True else: module.fail_json(msg=error_msg)