Description of Issue Fixed
When stack not exists findApiId() fails on getStack() and then on getNestedStack(). Try block in removeBasePathMappings() do not set externalBasePathExists flag. As result domain that has other mappings are removed.
Changes proposed in this pull request:
This fix adds extra check to catch block of removeBasePathMappings() if option preserveExternalPathMappings is set in stack config (by setting this option user identify that domain should have another mappings) and set the flag externalBasePathExists that prevent removing domain.
Fixes #0000
Description of Issue Fixed When stack not exists
findApiId()
fails ongetStack()
and then ongetNestedStack()
. Try block inremoveBasePathMappings()
do not setexternalBasePathExists
flag. As result domain that has other mappings are removed.Changes proposed in this pull request: This fix adds extra check to catch block of
removeBasePathMappings()
if optionpreserveExternalPathMappings
is set in stack config (by setting this option user identify that domain should have another mappings) and set the flagexternalBasePathExists
that prevent removing domain.