diff --git a/kbatch/kbatch/_core.py b/kbatch/kbatch/_core.py index da69b7e..2a33aeb 100644 --- a/kbatch/kbatch/_core.py +++ b/kbatch/kbatch/_core.py @@ -386,4 +386,4 @@ def _prep_job_data( if profile: profile = load_profile(profile, kbatch_url) - return data + return data, profile diff --git a/kbatch/kbatch/cli.py b/kbatch/kbatch/cli.py index 403d77d..0ca05a7 100644 --- a/kbatch/kbatch/cli.py +++ b/kbatch/kbatch/cli.py @@ -141,7 +141,7 @@ def submit_cronjob( Submit a CronJob to run on Kubernetes. """ - data = _core._prep_job_data( + data, profile = _core._prep_job_data( file, code, name, @@ -262,7 +262,7 @@ def submit_job( Submit a job to run on Kubernetes. """ - data = _core._prep_job_data( + data, profile = _core._prep_job_data( file, code, name,