Browse Source

Merge "Fixes wrong values in get_glance_image_attrs"

Jenkins 5 years ago
parent
commit
cb0daf02d7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/puppet/provider/glance.rb

+ 1
- 1
lib/puppet/provider/glance.rb View File

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

Loading…
Cancel
Save