Reviewed: https://review.opendev.org/c/openstack/neutron/+/944099 Committed: https://opendev.org/openstack/neutron/commit/1e560ecd8a2a620b7b6d677bae962764302136a0 Submitter: "Zuul (22348)" Branch: master
commit 1e560ecd8a2a620b7b6d677bae962764302136a0 Author: Rodolfo Alonso Hernandez <ralon...@redhat.com> Date: Thu Mar 13 08:39:06 2025 +0000 Allow to delete singleton instances Now the decorator ``SingletonDecorator`` forgets the instantiated object if all references to this object have been deleted. It is needed to keep at least one reference to the decorated class in order to make any new instantiation idempotent. Closes-Bug: #2102083 Change-Id: Ib237c7c1e1ba29626a03765a0521180fc2718c32 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/2102083 Title: ``SingletonDecorator`` class to allow destroying instances Status in neutron: Fix Released Bug description: The current ``SingletonDecorator`` does not allow to destroy already instantiated objects. This bug proposes to create a metaclass with a ``destroy`` subclass method that allows the object to delete itself. This could be useful now for testing. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/2102083/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp