Add support for getting spot instance request tags
This commit is contained in:
parent
22d9141122
commit
f029fe672d
3 changed files with 32 additions and 1 deletions
|
|
@ -186,6 +186,16 @@ DESCRIBE_SPOT_INSTANCES_TEMPLATE = """<DescribeSpotInstanceRequestsResponse xmln
|
|||
</PlacementRequestType>
|
||||
{% endif %}
|
||||
</launchSpecification>
|
||||
<tagSet>
|
||||
{% for tag in request.get_tags() %}
|
||||
<item>
|
||||
<resourceId>{{ tag.resource_id }}</resourceId>
|
||||
<resourceType>{{ tag.resource_type }}</resourceType>
|
||||
<key>{{ tag.key }}</key>
|
||||
<value>{{ tag.value }}</value>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</tagSet>
|
||||
{% if request.launch_group %}
|
||||
<launchGroup>{{ request.launch_group }}</launchGroup>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue