Skip to content

Commit 567513e

Browse files
authored
Merge pull request #261 from stackhpc/upstream/2025.1-2026-03-02
Synchronise 2025.1 with upstream
2 parents 589f64e + ce6e662 commit 567513e

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

neutron/services/logapi/drivers/manager.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,18 @@ def __init__(self):
6868
self._drivers = set()
6969
self.rpc_required = False
7070
registry.publish(log_const.LOGGING_PLUGIN, events.AFTER_INIT, self)
71-
72-
if self.rpc_required:
73-
self.logging_rpc = server_rpc.LoggingApiNotification()
71+
self._logging_rpc = None
7472

7573
@property
7674
def drivers(self):
7775
return self._drivers
7876

77+
@property
78+
def logging_rpc(self):
79+
if self.rpc_required and not self._logging_rpc:
80+
self._logging_rpc = server_rpc.LoggingApiNotification()
81+
return self._logging_rpc
82+
7983
def register_driver(self, driver):
8084
"""Register driver with logging plugin.
8185

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ envlist = docs,py3,pep8
33
minversion = 3.18.0
44
skipsdist = False
55
ignore_basepython_conflict = True
6+
# NOTE(elod.illes): latest virtualenv bundles setuptools 82.0.0, which
7+
# dropped pkg_resources module source from the package, which is used
8+
# in pbr-6.1.1, thus virtualenv needs to be pinned to fix the gate.
9+
# also tox needs to be pinned to handle missing packaging.pylock
10+
requires =
11+
tox<4.44.0
12+
virtualenv<20.37.0
613

714
[testenv]
815
description =

0 commit comments

Comments
 (0)