From 6644d769824bdd2ce338760ff5e84dbde7821967 Mon Sep 17 00:00:00 2001 From: Tom Cahill Date: Fri, 26 Jun 2015 12:08:44 -0700 Subject: [PATCH] Use aws.String to obtain string pointers --- builder/amazon/common/step_modify_ami_attributes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/amazon/common/step_modify_ami_attributes.go b/builder/amazon/common/step_modify_ami_attributes.go index 33bf6bf3a..712eea615 100644 --- a/builder/amazon/common/step_modify_ami_attributes.go +++ b/builder/amazon/common/step_modify_ami_attributes.go @@ -50,9 +50,9 @@ func (s *StepModifyAMIAttributes) Run(state multistep.StateBag) multistep.StepAc } for i, g := range s.Groups { - groups[i] = &g + groups[i] = aws.String(g) adds[i] = &ec2.LaunchPermission{ - Group: &g, + Group: aws.String(g), } } addGroups.UserGroups = groups