diff --git a/tests/foreman/cli/test_remoteexecution.py b/tests/foreman/cli/test_remoteexecution.py index 8686da54cc8..def7f8688e4 100644 --- a/tests/foreman/cli/test_remoteexecution.py +++ b/tests/foreman/cli/test_remoteexecution.py @@ -1369,7 +1369,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}",