From bf103bc4288b3fcf043a627d870ae5f4c5ef4238 Mon Sep 17 00:00:00 2001 From: Pallab Pain Date: Tue, 11 Jun 2024 10:29:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(apply):=20fixes=20the=20secr?= =?UTF-8?q?et=20guid=20functor=20in=20the=20resolver=20(#321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While fixing a regression, the guid functor for secret was updated to return a name. This led to a regression in the apply command where secrets created along with other packages weren't being resolved correctly. This commit fixes that. --- riocli/apply/resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riocli/apply/resolver.py b/riocli/apply/resolver.py index 4cc3808b..46e21a0a 100644 --- a/riocli/apply/resolver.py +++ b/riocli/apply/resolver.py @@ -116,7 +116,7 @@ def find_depends(self, depends, *args): def _guid_functor(self, kind): mapping = { - 'secret': lambda x: munchify(x).metadata.name, + 'secret': lambda x: munchify(x).metadata.guid, "project": lambda x: munchify(x).metadata.guid, "package": lambda x: munchify(x)['id'], "staticroute": lambda x: munchify(x)['metadata']['guid'],