From 50ab96c2f660a21529c349fb3233b76183bb29fa Mon Sep 17 00:00:00 2001 From: vsoch Date: Fri, 26 Jan 2024 22:31:44 -0700 Subject: [PATCH] add debug for server mode Signed-off-by: vsoch --- app/library/auth.py | 1 + clients/python/flux_restful_client/main/client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/library/auth.py b/app/library/auth.py index 4b0c357..4fe31d4 100644 --- a/app/library/auth.py +++ b/app/library/auth.py @@ -28,6 +28,7 @@ def alert_auth(): if settings.secret_key else "🍓 Secret key: unset" ) + print("🍓 Server mode: %s" % settings.flux_server_mode) print( "🍓 Flux user: %s" % ("*" * len(settings.flux_user)) if settings.flux_user diff --git a/clients/python/flux_restful_client/main/client.py b/clients/python/flux_restful_client/main/client.py index 0099828..c7f0005 100644 --- a/clients/python/flux_restful_client/main/client.py +++ b/clients/python/flux_restful_client/main/client.py @@ -278,7 +278,7 @@ def submit(self, command, **kwargs): # Validate the data first. jsonschema.validate(data, schema=schemas.job_submit_schema) - result = self.do_request("jobs/submit", "POST", json=data) + result = self.do_request("jobs/submit", "POST", params=data) if result.status_code == 404: print("There is no job for that identifier.") return