We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96170f commit b70c7b0Copy full SHA for b70c7b0
lib/puppet/provider/volume_group/lvm.rb
@@ -58,6 +58,21 @@ def exists?
58
end
59
60
def physical_volumes=(new_volumes = [])
61
+ # Need to replace device path with real names, instead of symlink
62
+ if @resource.parameter(:followsymlinks).value == :true then
63
+ new_volume_real = []
64
+ new_volumes.each do |s|
65
+ if File.symlink?(s)
66
+ device = File.expand_path(File.readlink(s), File.dirname(s))
67
+ new_volume_real.push device
68
+ else
69
+ real_should.push s
70
+ end
71
72
+ new_volumes = new_volume_real
73
74
+
75
76
# Only take action if createonly is false just to be safe
77
# this is really only here to enforce the createonly setting
78
# if something goes wrong in physical_volumes
0 commit comments