summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrea Tartaglia <andrea@braingap.uk>2019-02-01 13:19:33 +0000
committerJohn R Barker <john@johnrbarker.com>2019-02-01 13:19:33 +0000
commitb8790abcbeebfca27e1841b89850d8fe96b53fd9 (patch)
tree4c6ae04be191069790c01a68b88682813abeb1ce /lib
parentbeb2af83c16294bac949c64d29cdb7e61a2c15ac (diff)
downloadansible-b8790abcbeebfca27e1841b89850d8fe96b53fd9.tar.gz
Added description to single net interface (#51602)
* Added description to single net interface * ec2_instance single iface description changelog
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/modules/cloud/amazon/ec2_instance.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/modules/cloud/amazon/ec2_instance.py b/lib/ansible/modules/cloud/amazon/ec2_instance.py
index 0b23f4cd50..81ec8bfb5a 100644
--- a/lib/ansible/modules/cloud/amazon/ec2_instance.py
+++ b/lib/ansible/modules/cloud/amazon/ec2_instance.py
@@ -926,6 +926,8 @@ def build_network_spec(params, ec2=None):
ec2=ec2
)
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
return [spec]