Merge "Fixes wrong values in get_glance_image_attrs" into stable/havana

This commit is contained in:
Jenkins 2014-08-15 22:24:49 +00:00 committed by Gerrit Code Review
commit 951a66d535
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Puppet::Provider::Glance < Puppet::Provider
def self.get_glance_image_attrs(id)
attrs = {}
(auth_glance('show', id).split("\n") || []).collect do |line|
attrs[line.split(': ').first.downcase] = line.split(': ')[1..-1].to_s
attrs[line.split(': ').first.downcase] = line.split(': ')[1..-1].pop
end
return attrs
end