Skip to content

Commit ff08ff5

Browse files
mdeuserdubee
authored andcommitted
during api create, correctly handle non-default (i.e. "_") namespaces (#4221)
* during api create, correctly handle non-default (i.e. "_") namespaces
1 parent 19a1981 commit ff08ff5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/routemgmt/common/apigw-utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ function updateNamespace(apidoc, namespace) {
853853
if (apidoc.action) {
854854
// The action namespace does not have to match the CLI user's namespace
855855
// If it is different, leave it alone; otherwise use the replacement namespace
856-
if (apidoc.namespace === apidoc.action.namespace) {
856+
// And only replace when the namespace is the default '_' which needs replacement
857+
if (apidoc.action.namespace === '_') {
857858
apidoc.action.namespace = namespace;
858859
apidoc.action.backendUrl = replaceNamespaceInUrl(apidoc.action.backendUrl, namespace); }
859860
}

0 commit comments

Comments
 (0)