diff options
author | John McCrae <john.mccrae@progress.com> | 2021-06-01 10:29:37 -0700 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2021-06-14 19:01:07 -0700 |
commit | f5a04d85aa7f005c8e1cbcbf3f9c2940302e832b (patch) | |
tree | e68dbcb14c66a5c35ea4c3e26c45f1089a73d1de /lib | |
parent | 9fd84d6cb73cb60dc9a6d383c097ae34af70fc81 (diff) | |
download | chef-f5a04d85aa7f005c8e1cbcbf3f9c2940302e832b.tar.gz |
Updated the Windows Pagefile resource to use PowerShell over WMI, added a corresponding test file
Signed-off-by: John McCrae <john.mccrae@progress.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/windows_pagefile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_pagefile.rb b/lib/chef/resource/windows_pagefile.rb index f5e683774e..5b11a374b9 100644 --- a/lib/chef/resource/windows_pagefile.rb +++ b/lib/chef/resource/windows_pagefile.rb @@ -120,7 +120,7 @@ class Chef # raise an exception if the target drive location is invalid def pagefile_drive_exist?(pagefile) - ::Dir.exist?(pagefile[0] + ":\\") ? true : (raise "You are trying to create a pagefile on a drive that does not exist!") + ::Dir.exist?(pagefile[0] + ":\\") ? nil : (raise "You are trying to create a pagefile on a drive that does not exist!") end # See if the pagefile exists |