diff --git a/lib/puppet/provider/user/useradd.rb b/lib/puppet/provider/user/useradd.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/provider/user/useradd.rb
+++ b/lib/puppet/provider/user/useradd.rb
@@ -34,7 +34,7 @@ Puppet::Type.type(:user).provide :useradd, :parent => Puppet::Provider::NameServ
     cmd = []
     if @resource.managehome?
       cmd << "-m"
-    elsif %w{RedHat}.include?(Facter.value(:osfamily))
+    elsif Facter.value(:osfamily) == 'RedHat'
       cmd << "-M"
     end
     cmd
(#<I>) Use `==` not `include?` in useradd provider

Andy raised the concern we should use `==` instead of `include?` since
we are checking a single value. This commit addresses the concern.