Skip to content

Commit 109ed00

Browse files
authored
Merge pull request #219 from dacron/master
volume_group type does not handle passing of physical_volumes as a hash
2 parents 9957b55 + 47e57cf commit 109ed00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/puppet/type/volume_group.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
will automatically set these as dependencies, but they must be defined elsewhere
1212
using the physical_volume resource type."
1313

14+
munge do |value|
15+
if value.is_a?(Hash) then
16+
value.keys.sort
17+
else
18+
value
19+
end
20+
end
21+
1422
def insync?(is)
1523
if @resource.parameter(:followsymlinks).value == :true then
1624
real_should = []

0 commit comments

Comments
 (0)