diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index e5c0df56783..9de0071974d 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -1380,7 +1380,7 @@ def test_positive_run_job_on_host_registered_to_pull_provider( module_target_sat, make_user_job['id'], rhel_contenthost.hostname ) # create a file as new user - invocation_command = module_target_sat.make_job_invocation( + invocation_command = module_target_sat.cli_factory.job_invocation( { 'job-template': 'Run Command - Script Default', 'inputs': f"command=touch /home/{username}/{filename}",