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:
parent
6068a29434
commit
f9d47bb0d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user