1
0
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:
Daniel Molina 2015-03-31 16:49:28 +02:00
parent 35d808313d
commit 9b5802cc3a

View File

@ -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