Skip to content
Permalink
Browse files
Fix up delete / create tags actions
  • Loading branch information
brogand93 committed Jun 1, 2014
1 parent a9a56cf commit 97c602149ad726d30cae5ce23991921aca20c767
Showing 1 changed file with 8 additions and 5 deletions.
@@ -48,8 +48,6 @@ def _create_tag_request():

response = requester.make_request_async(args)

response = response['createtagsresponse']

return response


@@ -86,16 +84,21 @@ def _delete_tag_request():
key = helpers.get('Tag.1.Key')
resource_id = helpers.get('ResourceId.1')

if resource_id in current_app.config['RESOURCE_TYPE_MAP']:
resource_type = current_app.config['RESOURCE_TYPE_MAP'][resource_id]
else:
errors.invalid_request(
str(resource_id) + " not found in configuration")

args = {
'command': 'deleteTag',
'command': 'deleteTags',
'resourceids': resource_id,
'resourcetype': resource_type,
'tags[0].key': key
}

response = requester.make_request_async(args)

response = response['deletetagsresponse']

return response


0 comments on commit 97c6021

Please sign in to comment.