nova_flavor: Strip '' from project id value
Currently the project field shows a list of projects like;
project=['ec085e18-22bb-403b-8ba5-0f9c6d67dffa']
The commit 86764de9cd
added the logic to
handle this format but it missed surrounding quote(') which should be
also removed.
Change-Id: If65221db5a9e60e797b834a305d385d3fea4db16
This commit is contained in:
@@ -101,6 +101,7 @@ Puppet::Type.type(:nova_flavor).provide(
|
||||
else
|
||||
project_value = access_project_ids
|
||||
end
|
||||
project_value = project_value.gsub('\'', '')
|
||||
properties = Hash[attrs[:properties].scan(/(\S+)='([^']*)'/)] rescue nil
|
||||
new(
|
||||
:ensure => :present,
|
||||
|
Reference in New Issue
Block a user