Skip to content

Commit

Permalink
driver/powerdriver: drop obsolete delays in PDUDaemonDriver
Browse files Browse the repository at this point in the history
Now that [1] is merged, we can drop the sleeps that waited for pdudaemon
to execute the request. Note that [1] is not part of a release, yet.

[1] pdudaemon/pdudaemon#78

Signed-off-by: Bastian Krause <bst@pengutronix.de>
  • Loading branch information
Bastian-Krause committed Apr 27, 2023
1 parent a8e4831 commit 6553635
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions labgrid/driver/powerdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,21 +396,18 @@ def on_activate(self):
def on(self):
r = self._requests.get(self._build_url('on'))
r.raise_for_status()
time.sleep(1) # give pdudaemon some time to execute the request

@Driver.check_active
@step()
def off(self):
r = self._requests.get(self._build_url('off'))
r.raise_for_status()
time.sleep(1) # give pdudaemon some time to execute the request

@Driver.check_active
@step()
def cycle(self):
r = self._requests.get(self._build_url('reboot'))
r.raise_for_status()
time.sleep(self.delay + 1) # give pdudaemon some time to execute the request

@Driver.check_active
def get(self):
Expand Down

0 comments on commit 6553635

Please sign in to comment.