mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-28 20:39:40 +00:00
Scale timeout with number of outlets
Delta PDUs seem to serialize outlet operation.
This commit is contained in:
parent
987587aaf8
commit
cbf2cdcdc5
@ -199,11 +199,13 @@ def update(nodes, element, configmanager, inputdata):
|
||||
if 'outlets' not in element:
|
||||
yield msg.ConfluentResourceUnavailable(node, 'Not implemented')
|
||||
return
|
||||
timeout = 1
|
||||
for node in nodes:
|
||||
gc = PDUClient(node, configmanager)
|
||||
newstate = inputdata.powerstate(node)
|
||||
gc.set_outlet(element[-1], newstate)
|
||||
timeout += 1
|
||||
gc.logout()
|
||||
eventlet.sleep(2)
|
||||
eventlet.sleep(timeout)
|
||||
for res in retrieve(nodes, element, configmanager, inputdata):
|
||||
yield res
|
||||
|
Loading…
Reference in New Issue
Block a user