You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken logic in grains management with new default YAML loader #64017
This logic is no longer valid. The new YAML loader now constructs a dictionary object which supplies a default empty object data value when a not-present key is requested from the dictionary. This means that an exception is no longer thrown in the case of an absent key. The fix is simple. Don't rely on the exception to determine if a key exists within the dictionary. Simply check if the key exists. The problems this has caused are documented in tickets like the one below, which has a patch to fix the issue:
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Activity
dwoz commentedon Jul 2, 2026
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Fix grains.append leaking defaultdict into persisted grain state
Fix grains.append leaking defaultdict into persisted grain state (#69648
[3008.x] Fix EventPublisher unix-socket leak (PubServer close callbac…