Skip to content

Commit

Permalink
Tweaking source update-save (project-koku#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcouzens authored May 25, 2022
1 parent 8a245a1 commit a2194be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions koku/providers/gcp/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def update_source_data_source(self, data_source):
source_query = Sources.objects.filter(billing_source__data_source__dataset=data_source.get("dataset"))
for source in source_query:
if source.billing_source.get("data_source") != data_source:
source.billing_source = {"data_source": data_source}
source.save()
source_filter = Sources.objects.filter(source_id=source.source_id)
source_filter.update(billing_source={"data_source": data_source})

provider_uuid = source.koku_uuid
provider = Provider.objects.filter(uuid=provider_uuid).first()
Expand Down

0 comments on commit a2194be

Please sign in to comment.