Skip to content

cm: networkmanager: fix early return in RemoveInstanceNetworkParameters#200

Open
MykolaSuperman wants to merge 1 commit intoaosedge:developfrom
MykolaSuperman:fix/networkmanager-early-return
Open

cm: networkmanager: fix early return in RemoveInstanceNetworkParameters#200
MykolaSuperman wants to merge 1 commit intoaosedge:developfrom
MykolaSuperman:fix/networkmanager-early-return

Conversation

@MykolaSuperman
Copy link
Copy Markdown

Replace return eNone with continue when instance is not found in a network's host instances. The early return prevented searching other networks, leaving the instance in memory for the old node. During provider network cleanup the same instance was deleted from DB twice: first deletion succeeded, second got eNotFound and threw an error.

Replace `return eNone` with `continue` when instance is not found in a
network's host instances. The early return prevented searching other
networks, leaving the instance in memory for the old node. During
provider network cleanup the same instance was deleted from DB twice:
first deletion succeeded, second got eNotFound and threw an error.

Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@79b59a6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/cm/networkmanager/networkmanager.cpp 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #200   +/-   ##
==========================================
  Coverage           ?   82.42%           
==========================================
  Files              ?      325           
  Lines              ?    31153           
  Branches           ?     3228           
==========================================
  Hits               ?    25678           
  Misses             ?     5475           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant