2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Fix markingrequest as not implemented

The Geist PDU support inadvertently took down
unrelated parts of a request, fix by
properly showing not implemented in
a node specific way.
This commit is contained in:
Jarrod Johnson 2022-05-20 08:35:43 -04:00
parent 6068a29434
commit f9d47bb0d3

View File

@ -104,7 +104,9 @@ class GeistClient(object):
def retrieve(nodes, element, configmanager, inputdata):
if 'outlets' not in element:
raise exc.NotImplementedException('Not implemented')
for node in nodes:
yield msg.ConfluentResourceUnavailable(node, 'Not implemented')
return
for node in nodes:
gc = GeistClient(node, configmanager)
state = gc.get_outlet(element[-1])
@ -112,7 +114,8 @@ def retrieve(nodes, element, configmanager, inputdata):
def update(nodes, element, configmanager, inputdata):
if 'outlets' not in element:
raise exc.NotImplementedException('Not implemented')
yield msg.ConfluentResourceUnavailable(node, 'Not implemented')
return
for node in nodes:
gc = GeistClient(node, configmanager)
newstate = inputdata.powerstate(node)