Merge "Store pool name in component registry"
This commit is contained in:
commit
d135cc4215
@ -472,6 +472,7 @@ class PoolWorker(threading.Thread, stats.StatsReporter):
|
||||
pool_config = self.getPoolConfig()
|
||||
self.component_info.content.update({
|
||||
'id': self.launcher_id,
|
||||
'name': self.pool_name,
|
||||
'provider_name': self.provider_name,
|
||||
'supported_labels': list(pool_config.labels),
|
||||
'state': self.component_info.RUNNING,
|
||||
|
@ -36,6 +36,7 @@ class TestComponentRegistry(tests.DBTestCase):
|
||||
version=get_version_string())
|
||||
launcher.content.update({
|
||||
'id': "launcher-Poolworker.provider-main-" + uuid.uuid4().hex,
|
||||
'name': 'main',
|
||||
'provider_name': 'provider',
|
||||
'supported_labels': [],
|
||||
'state': launcher.RUNNING,
|
||||
|
@ -199,6 +199,7 @@ class PoolComponent(BaseComponent):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.initial_state = {
|
||||
"id": None,
|
||||
"name": None,
|
||||
"provider_name": None,
|
||||
"supported_labels": [],
|
||||
"priority": 100,
|
||||
|
Loading…
Reference in New Issue
Block a user