From d1be11ce32f8a92659f0f739640cc987ae0fb564 Mon Sep 17 00:00:00 2001 From: Ildar Iskhakov Date: Thu, 27 Jul 2023 17:08:28 +0800 Subject: [PATCH] Fix plugin sync bug (#2656) # What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --- engine/apps/grafana_plugin/helpers/gcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/apps/grafana_plugin/helpers/gcom.py b/engine/apps/grafana_plugin/helpers/gcom.py index fbb269e4..67543906 100644 --- a/engine/apps/grafana_plugin/helpers/gcom.py +++ b/engine/apps/grafana_plugin/helpers/gcom.py @@ -51,7 +51,7 @@ def check_gcom_permission(token_string: str, context) -> GcomToken: )[0].boolean_value if allow_signup: # Get org from db or create a new one - organization = Organization.objects.get_or_create( + organization, _ = Organization.objects.get_or_create( stack_id=str(instance_info["id"]), stack_slug=instance_info["slug"], grafana_url=instance_info["url"],