mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
bug #2511: Fix how tags are generated for the EC2 driver
This commit is contained in:
1 parent
35d808313d
commit
9b5802cc3a
1 file changed
+3
-2
@@ -172,7 +172,7 @@ class EC2Driver
|
||||
:cmd => :create_tags,
|
||||
:args => {
|
||||
"TAGS" => {
|
||||
:opt => '-t',
|
||||
:opt => 'tags',
|
||||
:proc => lambda {|str|
|
||||
hash = {}
|
||||
str.split(',').each {|s|
|
||||
@@ -251,7 +251,8 @@ class EC2Driver
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
tags = generate_options(:tags, ec2_info) || {}
|
||||
tags = generate_options(:tags, ec2_info)['tags'] || {}
|
||||
|
||||
tags['ONE_ID'] = id
|
||||
tags.each{ |key,value|
|
||||
begin
|
||||
|
||||
Reference in new issue
Block a user