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:
parent
f6c865a055
commit
0adbbcf9f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue