mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Stall readback of PDU after outlet control
There is some lag after requesting an outlet change and the outlet state actually changing.
This commit is contained in:
parent
5d1315098f
commit
0db7d4f9d2
@ -17,6 +17,7 @@ import confluent.util as util
|
||||
import confluent.messages as msg
|
||||
import confluent.exceptions as exc
|
||||
import eventlet.green.time as time
|
||||
import eventlet
|
||||
import eventlet.greenpool as greenpool
|
||||
|
||||
def simplify_name(name):
|
||||
@ -226,5 +227,6 @@ def update(nodes, element, configmanager, inputdata):
|
||||
gc = GeistClient(node, configmanager)
|
||||
newstate = inputdata.powerstate(node)
|
||||
gc.set_outlet(element[-1], newstate)
|
||||
eventlet.sleep(1)
|
||||
for res in retrieve(nodes, element, configmanager, inputdata):
|
||||
yield res
|
||||
|
Loading…
Reference in New Issue
Block a user