Merge "Fixes wrong values in get_glance_image_attrs"

This commit is contained in:
Jenkins 2014-05-05 19:42:02 +00:00 committed by Gerrit Code Review
commit cb0daf02d7
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,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