Commit 45bf48f
committed
Make the
The ``LoggingServiceDriverManager`` can register additional drivers by
calling the method ``register_driver``. Depending on the driver type,
the logging plugin will require RPC.
Before this patch, the RPC server was loaded at the beginning, using
the initial ``rpc_required`` value. If the initial driver doesn't
require RPC, the RPC server was never loaded, regardless of future
registered drivers.
Within in this patch, the RPC server instance is a property that
depends on the current ``rpc_required`` and the private variable storing
the RPC instance. If the ``rpc_required`` flag changes, the next time
the RPC server is required it will be loaded.
Closes-Bug: #2141308
Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: I4e7c773d19d189535fa6118e1f2d0c2a088010e4
(cherry picked from commit 1f953df)logging_rpc member a class property1 parent 69b62dd commit 45bf48f
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments