diff options
author | Cam Cope <ccope@brightcove.com> | 2014-04-22 16:24:31 -0400 |
---|---|---|
committer | Cam Cope <ccope@brightcove.com> | 2014-04-22 16:24:31 -0400 |
commit | 677fd0cc99aa116dbd26c52611bddb8bf8559c7e (patch) | |
tree | 6ed904b1b00ae6849067ddd578866c862b683414 | |
parent | 480aeb8b5cda4292411d0bc66e1f05614000acfe (diff) | |
download | chef-677fd0cc99aa116dbd26c52611bddb8bf8559c7e.tar.gz |
check whether the variable is empty rather than an empty string
-rw-r--r-- | lib/chef/provider/user/useradd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/useradd.rb b/lib/chef/provider/user/useradd.rb index 409da10e53..201bcbe542 100644 --- a/lib/chef/provider/user/useradd.rb +++ b/lib/chef/provider/user/useradd.rb @@ -38,7 +38,7 @@ class Chef end def manage_user - if universal_options != "" + unless universal_options.empty? command = compile_command("usermod") do |u| u.concat(universal_options) end |