Skip to content

Commit

Permalink
🐛 fix(apply): fixes the secret guid functor in the resolver (#321)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pallabpain authored Jun 11, 2024
1 parent ad70aed commit bf103bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riocli/apply/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit bf103bc

Please sign in to comment.