diff --git a/apps/node_man/tools/job.py b/apps/node_man/tools/job.py index cb53522f89..1549627bd1 100644 --- a/apps/node_man/tools/job.py +++ b/apps/node_man/tools/job.py @@ -21,8 +21,8 @@ from apps.node_man import constants, models from apps.utils import basic from apps.utils.local import ( + get_request_app_code_or_local_app_code, get_request_username, - get_request_username_or_local_app_code, ) from common.api import NodeApi @@ -381,7 +381,7 @@ def create_job( statistics=statistics or {}, error_hosts=error_hosts or [], created_by=get_request_username(), - from_system=get_request_username_or_local_app_code(), + from_system=get_request_app_code_or_local_app_code(), ) return {"job_id": job.id, "job_url": cls.get_job_url(job.id)}