Skip to content

Commit

Permalink
No enabled tags == no tags at all (#3074)
Browse files Browse the repository at this point in the history
Block all tags if none are enabled
  • Loading branch information
Red-HAP authored Aug 25, 2021
1 parent bfdb842 commit 7a352af
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ SELECT uuid_generate_v4() as uuid,
p.region,
p.instance_type,
pr.unit,
case when ek.keys = '{}'::text[]
then li.tags
else li.tags - public.array_subtract(array(select jsonb_object_keys(li.tags))::text[], ek.keys::text[])
end::jsonb as "aws_tags",
li.tags - public.array_subtract(array(select jsonb_object_keys(li.tags))::text[], ek.keys::text[]) as "aws_tags",
sum(li.usage_amount) as usage_amount,
max(li.normalization_factor) as normalization_factor,
sum(li.normalized_usage_amount) as normalized_usage_amount,
Expand Down

0 comments on commit 7a352af

Please sign in to comment.