Skip to content

Commit

Permalink
Cookstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed May 16, 2018
1 parent d287703 commit 273088d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def fs_type(mount)
#
# @return [Boolean]
def fs_remote?(mount)
fs_type(mount) == 'nfs' ? true : false
fs_type(mount) == 'nfs'
end

def keys_from_url(url)
Expand Down
2 changes: 1 addition & 1 deletion resources/manage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
home_dir = (u['home'] ? u['home'] : "#{home_basedir}/#{u['username']}")

# check whether home dir is null
manage_home = (home_dir == '/dev/null' ? false : true)
manage_home = !(home_dir == '/dev/null')

# The user block will fail if the group does not yet exist.
# See the -g option limitations in man 8 useradd for an explanation.
Expand Down

0 comments on commit 273088d

Please sign in to comment.