summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r--lib/chef/provider/user/solaris.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/solaris.rb b/lib/chef/provider/user/solaris.rb
index 7bd944ed1c..7aa0ceb93a 100644
--- a/lib/chef/provider/user/solaris.rb
+++ b/lib/chef/provider/user/solaris.rb
@@ -53,7 +53,7 @@ class Chef
raise Chef::Exceptions::User, "Cannot determine if #{@new_resource} is locked!" if user.nil?
- @locked = !!(user[1] =~ /^\*?LK\*?/)
+ @locked = user[1].start_with?("*LK*")
end
def lock_user