Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix domain deleting when fail on not exist stack #627

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0vvland
Copy link

@0vvland 0vvland commented Apr 7, 2024

Fixes #0000

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.

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. 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.
Copy link

sonarcloud bot commented Apr 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant