From fcec201f01d652bbfa35f03a34d252125faeaaa5 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Tue, 1 Apr 2025 06:59:38 -0700 Subject: [PATCH] Run hatch fmt This file wasn't formatted before making it into main. Not sure why the linter didn't catch it... Signed-off-by: Nic Cope --- crossplane/function/resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crossplane/function/resource.py b/crossplane/function/resource.py index 039af46..c9bfc69 100644 --- a/crossplane/function/resource.py +++ b/crossplane/function/resource.py @@ -45,8 +45,8 @@ def update(r: fnv1.Resource, source: dict | structpb.Struct | pydantic.BaseModel # apiVersion is set to its default value 's3.aws.upbound.io/v1beta2' # (and not explicitly provided during initialization), it will be # excluded from the serialized output. - data['apiVersion'] = source.apiVersion - data['kind'] = source.kind + data["apiVersion"] = source.apiVersion + data["kind"] = source.kind r.resource.update(data) case structpb.Struct(): # TODO(negz): Use struct_to_dict and update to match other semantics?