diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index d9e63a0e0e..f94dc4d466 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -1103,7 +1103,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}",