ensuring boto3 can correctly identify instance security groups
This commit is contained in:
parent
ac4ce7d53f
commit
c5016d9ddb
1 changed files with 16 additions and 4 deletions
|
|
@ -314,8 +314,12 @@ EC2_DESCRIBE_INSTANCES = """<DescribeInstancesResponse xmlns='http://ec2.amazona
|
||||||
<groupSet>
|
<groupSet>
|
||||||
{% for group in reservation.dynamic_group_list %}
|
{% for group in reservation.dynamic_group_list %}
|
||||||
<item>
|
<item>
|
||||||
|
{% if group.id %}
|
||||||
<groupId>{{ group.id }}</groupId>
|
<groupId>{{ group.id }}</groupId>
|
||||||
<groupName>{{ group.name }}</groupName>
|
<groupName>{{ group.name }}</groupName>
|
||||||
|
{% else %}
|
||||||
|
<groupId>{{ group }}</groupId>
|
||||||
|
{% endif %}
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</groupSet>
|
</groupSet>
|
||||||
|
|
@ -361,8 +365,12 @@ EC2_DESCRIBE_INSTANCES = """<DescribeInstancesResponse xmlns='http://ec2.amazona
|
||||||
<groupSet>
|
<groupSet>
|
||||||
{% for group in instance.dynamic_group_list %}
|
{% for group in instance.dynamic_group_list %}
|
||||||
<item>
|
<item>
|
||||||
<groupId>{{ group.id }}</groupId>
|
{% if group.id %}
|
||||||
<groupName>{{ group.name }}</groupName>
|
<groupId>{{ group.id }}</groupId>
|
||||||
|
<groupName>{{ group.name }}</groupName>
|
||||||
|
{% else %}
|
||||||
|
<groupId>{{ group }}</groupId>
|
||||||
|
{% endif %}
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</groupSet>
|
</groupSet>
|
||||||
|
|
@ -418,8 +426,12 @@ EC2_DESCRIBE_INSTANCES = """<DescribeInstancesResponse xmlns='http://ec2.amazona
|
||||||
<groupSet>
|
<groupSet>
|
||||||
{% for group in nic.group_set %}
|
{% for group in nic.group_set %}
|
||||||
<item>
|
<item>
|
||||||
<groupId>{{ group.id }}</groupId>
|
{% if group.id %}
|
||||||
<groupName>{{ group.name }}</groupName>
|
<groupId>{{ group.id }}</groupId>
|
||||||
|
<groupName>{{ group.name }}</groupName>
|
||||||
|
{% else %}
|
||||||
|
<groupId>{{ group }}</groupId>
|
||||||
|
{% endif %}
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</groupSet>
|
</groupSet>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue