mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Pull outlets into the generic hierarchy
This will more easily facilitate adding pdus without dependent nodes.
This commit is contained in:
parent
6229cb23e8
commit
8dbcc804ed
@ -360,10 +360,6 @@ def _init_core():
|
||||
{'pluginattrs': ['hardwaremanagement.method'],
|
||||
'default': 'ipmi'}),
|
||||
},
|
||||
'_pdu': {
|
||||
'outlets': PluginCollection(
|
||||
{'pluginattrs': ['hardwaremanagement.method']}),
|
||||
},
|
||||
'shell': {
|
||||
# another special case similar to console
|
||||
'sessions': PluginCollection({
|
||||
@ -462,6 +458,7 @@ def _init_core():
|
||||
'default': 'ipmi',
|
||||
}),
|
||||
'inlets': PluginCollection({'handler': 'pdu'}),
|
||||
'outlets': PluginCollection({'pluginattrs': ['hardwaremanagement.method']}),
|
||||
'reseat': PluginRoute({'handler': 'enclosure'}),
|
||||
},
|
||||
'sensors': {
|
||||
|
@ -40,7 +40,7 @@ def retrieve(nodes, element, configmanager, inputdata):
|
||||
pdu = outlets[node][pgroup]['pdu']
|
||||
outlet = outlets[node][pgroup]['outlet']
|
||||
for rsp in core.handle_path(
|
||||
'/nodes/{0}/_pdu/outlets/{1}'.format(pdu, outlet),
|
||||
'/nodes/{0}/power/outlets/{1}'.format(pdu, outlet),
|
||||
'retrieve', configmanager):
|
||||
yield msg.KeyValueData({pgroup: rsp.kvpairs['state']['value']}, node)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user