Skip to content

Commit

Permalink
fix schedule route sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed May 8, 2024
1 parent c0c7dc6 commit 30e16a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion microservices/kubeApi/routers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ def get_template_version(ns_attributes):
return ns_attributes.get('template-version', ["v2"])[0]

def in_list (match, list):
match_ref = build_ref(match)
for item in list:
if item['name'] == match['name']:
if build_ref(item) == match_ref:
return True
return False

def build_ref(v):
return "%s%s%s%s" % (v['name'], v['selectTag'], v['host'], v['dataPlane'])

0 comments on commit 30e16a4

Please sign in to comment.