Don't lose the set reference for ec2 securitygroup ids

Fixes #38521
This commit is contained in:
rallytime 2017-01-09 18:22:16 -07:00
parent d67f6937d7
commit 830c03cec6

View File

@ -1179,7 +1179,7 @@ def securitygroupid(vm_):
log.debug('AWS SecurityGroup ID of {0} is {1}'.format(
sg['groupName'], sg['groupId'])
)
securitygroupid_set = securitygroupid_set.add(sg['groupId'])
securitygroupid_set.add(sg['groupId'])
return list(securitygroupid_set)