From 0db7d4f9d2167cf6093114955f7493966a0074bc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 26 May 2023 10:43:04 -0400 Subject: [PATCH] Stall readback of PDU after outlet control There is some lag after requesting an outlet change and the outlet state actually changing. --- confluent_server/confluent/plugins/hardwaremanagement/geist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/geist.py b/confluent_server/confluent/plugins/hardwaremanagement/geist.py index 730f4908..370e010c 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/geist.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/geist.py @@ -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