2
0
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:
Jarrod Johnson 2023-08-01 16:08:51 -04:00
parent 987587aaf8
commit cbf2cdcdc5

View File

@ -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