Merge pull request #2348 from emate/fix-for-ami-permission-setting

builder/aws: fix adding launch permissions for created ami.
This commit is contained in:
Mitchell Hashimoto 2015-06-29 09:21:36 -07:00
commit 60fabe64e1
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ func (s *StepModifyAMIAttributes) Run(state multistep.StateBag) multistep.StepAc
users := make([]*string, len(s.Users))
adds := make([]*ec2.LaunchPermission, len(s.Users))
for i, u := range s.Users {
users[i] = &u
adds[i] = &ec2.LaunchPermission{UserID: &u}
users[i] = aws.String(&u)
adds[i] = &ec2.LaunchPermission{UserID: aws.String(&u)}
}
options["users"] = &ec2.ModifyImageAttributeInput{
UserIDs: users,