From 99079ce804335db3072cf31c291dfcf2ac707167 Mon Sep 17 00:00:00 2001 From: Salim Alam Date: Thu, 10 Mar 2016 15:11:26 -0800 Subject: Make mount idempotent on Windows --- lib/chef/provider/mount/windows.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/chef/provider/mount/windows.rb b/lib/chef/provider/mount/windows.rb index 3ffe326cac..0fb5aa7645 100644 --- a/lib/chef/provider/mount/windows.rb +++ b/lib/chef/provider/mount/windows.rb @@ -80,6 +80,12 @@ class Chef end end + private + + def mount_options_unchanged? + @current_resource.device == @new_resource.device + end + end end end -- cgit v1.2.1