Browse files

The current EC2 api, if given the Tag.n.Value parameter the empty str…

…ing, will only delete it if the tag's value is the empty string. The intended behavior is to delete the tag regardless of the value. In this use case, no Value parameter should be sent to EC2.
  • Loading branch information...
jmallen authored and garnaat committed Aug 3, 2011
1 parent 9e339d3 commit 7aba9173fbe147e99d7a9722cc9cd53f2d942ab5
Showing with 2 additions and 3 deletions.
  1. +2 −3 boto/ec2/
@@ -2385,9 +2385,8 @@ def build_tag_param_list(self, params, tags):
for key in keys:
value = tags[key]
params['Tag.%d.Key'%i] = key
- if value is None:
- value = ''
- params['Tag.%d.Value'%i] = value
+ if value is not None:
+ params['Tag.%d.Value'%i] = value
i += 1
def get_all_tags(self, filters=None):

0 comments on commit 7aba917

Please sign in to comment.