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

BE: NMS-16536, Provisioning fails when category has been deleted #7463

Merged
merged 11 commits into from
Dec 9, 2024
Next Next commit
NMS-16536, initial commit with fixes
  • Loading branch information
smunir-onms committed Oct 8, 2024
commit 8b31f8b67ff010088874cad085b5af6643bd4ed9
Original file line number Diff line number Diff line change
@@ -1033,6 +1033,12 @@ private boolean handleCategoryChanges(final OnmsNode dbNode) {
}
}

// If any categories were removed or new ones are to be added, reset the cache
if (changed || !categories.isEmpty()) {
// attributes changed, resetting cache
m_categoryCache.set(loadCategoryMap());
}

// the remainder of requisitioned categories get added
for (final String cat : categories) {
m_categoriesAdded.add(cat);