From c2677b3c0a97480b3b23e639905eaa591370a9bf Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 28 Jul 2014 12:50:19 -0400 Subject: [PATCH] provider/aws: More strict check --- builtin/providers/aws/resource_aws_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index 10fe9455e6..757aca656b 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -274,7 +274,7 @@ func resource_aws_instance_update_state( continue } - if strings.Contains(str, "sg-") { + if strings.HasPrefix(str, "sg-") { useID = true break }