mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added description to single net interface (#51602)
* Added description to single net interface * ec2_instance single iface description changelog
This commit is contained in:
parent
beb2af83c1
commit
b8790abcbe
2 changed files with 4 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- ec2_instance - Correctly adds description when adding a single ENI to the instance
|
|
@ -926,6 +926,8 @@ def build_network_spec(params, ec2=None):
|
||||||
ec2=ec2
|
ec2=ec2
|
||||||
)
|
)
|
||||||
spec['Groups'] = [g['GroupId'] for g in groups]
|
spec['Groups'] = [g['GroupId'] for g in groups]
|
||||||
|
if network.get('description') is not None:
|
||||||
|
spec['Description'] = network['description']
|
||||||
# TODO more special snowflake network things
|
# TODO more special snowflake network things
|
||||||
|
|
||||||
return [spec]
|
return [spec]
|
||||||
|
|
Loading…
Reference in a new issue