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)
This commit is contained in:
Ildar Iskhakov 2023-07-27 17:08:28 +08:00 committed by GitHub
parent a8a2144a30
commit d1be11ce32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"],