do not add quotes to image name

previously, quotes were being added to the image name.

this caused the type to not be idempotent.
This commit is contained in:
Dan Bode 2013-02-15 16:02:04 -08:00
parent e267f68447
commit cc86b4592d

View File

@ -50,9 +50,9 @@ Puppet::Type.type(:glance_image).provide(
raise(Puppet::Error, "Must specify either source or location")
end
if stdin
auth_glance_stdin('add', "name='#{resource[:name]}'", "is_public=#{resource[:is_public]}", "container_format=#{resource[:container_format]}", "disk_format=#{resource[:disk_format]}", location)
auth_glance_stdin('add', "name=#{resource[:name]}", "is_public=#{resource[:is_public]}", "container_format=#{resource[:container_format]}", "disk_format=#{resource[:disk_format]}", location)
else
auth_glance('add', "name='#{resource[:name]}'", "is_public=#{resource[:is_public]}", "container_format=#{resource[:container_format]}", "disk_format=#{resource[:disk_format]}", location)
auth_glance('add', "name=#{resource[:name]}", "is_public=#{resource[:is_public]}", "container_format=#{resource[:container_format]}", "disk_format=#{resource[:disk_format]}", location)
end
end