Skip to content

Commit

Permalink
chage key from region_id to tag
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyangc3 committed Oct 31, 2017
1 parent 5d2b9a2 commit ab70aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliyun/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def tag_filter(cache, tag):
for tagkv in host["aliyun"]["Tags"]["Tag"]:
tagk, tagv = tagkv["TagKey"], tagkv["TagValue"]
if key == tagk and value == tagv:
result[region_id].append(hostname)
result["%s=%s" % (key, value)].append(hostname)
result['_meta']['hostvars'][hostname] = host
break

Expand Down

0 comments on commit ab70aea

Please sign in to comment.