From aca8111f753b57cef9d90c923f25f783a41e5ada Mon Sep 17 00:00:00 2001 From: Amit Upadhye Date: Mon, 8 Mar 2021 16:28:44 +0530 Subject: [PATCH] Fixes #32033 - use mongo command instead of client.command --- definitions/features/mongo.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/definitions/features/mongo.rb b/definitions/features/mongo.rb index 0f1cc0c5e..aacb236a8 100644 --- a/definitions/features/mongo.rb +++ b/definitions/features/mongo.rb @@ -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