Fixes wrong values in get_glance_image_attrs

The output of the glance show command in get_glance_image_attrs
does not get properly converted while being added to the
attrs array.

Change-Id: Ibe503b24ae3bfa10944537d5deaa068a01eaa5f3
Closes-Bug: #1199513
This commit is contained in:
Ivan Chavero 2014-05-04 10:14:17 -06:00
parent f6c865a055
commit 0adbbcf9f4
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