Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Show auth token in std output only when target_url is not declared

Maciej Korycinskibfb2d2625fdd
diff --git a/saleor/account/management/commands/createserviceaccount.py b/saleor/account/management/commands/createserviceaccount.py
index 62aec3b600..e715a647eb 100644
--- a/saleor/account/management/commands/createserviceaccount.py
+++ b/saleor/account/management/commands/createserviceaccount.py
@@ -74,4 +74,5 @@ class Command(BaseCommand):
}
if target_url:
self.send_service_account_data(target_url, data)
- return json.dumps(data)
+
+ return json.dumps(data) if not target_url else ""