mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #9368 from silvax/handle-return-non-on-join
as I read it, the issue is with a None item in the list, not with an empty list (tests return empty string), still fixes a traceback
This commit is contained in:
commit
517ae8b29d
1 changed files with 2 additions and 2 deletions
|
@ -622,8 +622,8 @@ class Ec2Inventory(object):
|
|||
for group in value:
|
||||
group_ids.append(group.id)
|
||||
group_names.append(group.name)
|
||||
instance_vars["ec2_security_group_ids"] = ','.join(group_ids)
|
||||
instance_vars["ec2_security_group_names"] = ','.join(group_names)
|
||||
instance_vars["ec2_security_group_ids"] = ','.join([str(i) for i in group_ids])
|
||||
instance_vars["ec2_security_group_names"] = ','.join([str(i) for i in group_names])
|
||||
else:
|
||||
pass
|
||||
# TODO Product codes if someone finds them useful
|
||||
|
|
Loading…
Reference in a new issue