Merge "Sort host_aggregate hosts list for comparison"

This commit is contained in:
Jenkins
2016-01-25 22:55:19 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ Puppet::Type.type(:nova_aggregate).provide(
:id => attrs['Id'],
:availability_zone => attrs['Availability Zone'],
:metadata => attrs['Metadata'],
:hosts => attrs['Hosts']
:hosts => attrs['Hosts'].sort
)
end
end

View File

@@ -99,7 +99,7 @@ Puppet::Type.newtype(:nova_aggregate) do
desc 'Single host or comma seperated list of hosts'
#convert DSL/string form to internal form
munge do |value|
return value.split(",").map{|el| el.strip()}
return value.split(",").map{|el| el.strip()}.sort
end
end