openvox 8.30.0 → 9.0.0.pre.alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,21 +86,12 @@ module Puppet
86
86
  raise Puppet::Error,
87
87
  "Cannot create #{@resource[:path]}; parent directory #{parent} does not exist"
88
88
  end
89
- begin
90
- if mode
91
- Puppet::Util.withumask(0o00) do
92
- Dir.mkdir(@resource[:path], symbolic_mode_to_int(mode, 0o755, true))
93
- end
94
- else
95
- Dir.mkdir(@resource[:path])
89
+ if mode
90
+ Puppet::Util.withumask(0o00) do
91
+ Dir.mkdir(@resource[:path], symbolic_mode_to_int(mode, 0o755, true))
96
92
  end
97
- rescue Errno::EEXIST
98
- # Another process may have created the directory concurrently. If it
99
- # really is a directory now, treat that as success.
100
- #
101
- # Directory mode, and other properties, will be checked and enforced by
102
- # the call to `property_fix`.
103
- raise unless Puppet::FileSystem.directory?(@resource[:path])
93
+ else
94
+ Dir.mkdir(@resource[:path])
104
95
  end
105
96
  @resource.send(:property_fix)
106
97
  return :directory_created