Skip to content

Commit

Permalink
Fixes #32033 - use mongo command instead of client.command
Browse files Browse the repository at this point in the history
  • Loading branch information
upadhyeammit committed Mar 8, 2021
1 parent 8c81d90 commit aca8111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions definitions/features/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ def backup_local(backup_file, extra_tar_options = {})
end

def mongo_cmd_available?
exit_status, _output = execute_with_status("which #{core.client_command}")
exit_status, _output = execute_with_status('which mongo')
exit_status == 0
end

def raise_mongo_client_missing_error
raise ForemanMaintain::Error::Fail, "The #{core.client_command} command not found."\
" Make sure system has #{core.client_command} utility installed."
raise ForemanMaintain::Error::Fail, 'The mongo command not found.'\
' Make sure system has mongo utility installed.'
end

private
Expand Down

0 comments on commit aca8111

Please sign in to comment.