mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #2511: Fix how tags are generated for the EC2 driver
This commit is contained in:
parent
35d808313d
commit
9b5802cc3a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user