Skip to content

Commit

Permalink
complete logic for qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Sep 14, 2023
1 parent 3d5f416 commit d9c67ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microservices/gatewayApi/v2/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ def write_config(namespace: str) -> object:
("Conflicting ns qualifiers (%s != %s)" % (ns_qualifier, nsq))))
ns_qualifier = nsq
log.info("[%s] CHANGING ns_qualifier %s" % (namespace, ns_qualifier))
elif ns_qualifier is not None:
abort_early(event_id, 'publish', namespace, jsonify(error="Validation Errors:\n%s" %
("Specified qualifier (%s) does not match tags in configuration (%s)" % (ns_qualifier, selectTag))))

if update_routes_check(gw_config):
update_routes_flag = True
Expand Down

0 comments on commit d9c67ab

Please sign in to comment.