Skip to content

Commit

Permalink
fix(apply): fixes the find_functor for staticroute
Browse files Browse the repository at this point in the history
The find_functor for staticroute was not parsing the name correctly and
hence, it led to issue when static routes are used in dependency.
  • Loading branch information
pallabpain committed Sep 22, 2023
1 parent fc27292 commit 2ad8a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riocli/apply/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def _find_functors(self, kind):
"project": lambda name, projects: filter(lambda i: i.metadata.name == name, projects),
"package": lambda name, obj_list, version: filter(
lambda x: name == x.name and version == x['packageVersion'], obj_list),
"staticroute": lambda name, obj_list: filter(lambda x: name == '-'.join(x.spec.url.split('-')[:-1]),
obj_list),
"staticroute": lambda name, obj_list: filter(
lambda x: name == x.metadata.name.rsplit('-', 1)[0], obj_list),
"build": self._generate_find_guid_functor(name_field='buildName'),
"deployment": self._generate_find_guid_functor(),
"network": self._generate_find_guid_functor(),
Expand Down

0 comments on commit 2ad8a17

Please sign in to comment.