diff options
Diffstat (limited to 'lib/chef/provider/group/windows.rb')
-rw-r--r-- | lib/chef/provider/group/windows.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/chef/provider/group/windows.rb b/lib/chef/provider/group/windows.rb index 46d8afc7f6..59d1c308ff 100644 --- a/lib/chef/provider/group/windows.rb +++ b/lib/chef/provider/group/windows.rb @@ -28,9 +28,11 @@ class Chef provides :group, os: 'windows' - def initialize(new_resource,run_context) - super - @net_group = Chef::Util::Windows::NetGroup.new(@new_resource.group_name) + if RUBY_PLATFORM =~ /mswin|mingw32|windows/ + def initialize(new_resource,run_context) + super + @net_group = Chef::Util::Windows::NetGroup.new(@new_resource.group_name) + end end def load_current_resource |