Skip to content

Commit 573550e

Browse files
authored
Merge pull request labgrid-project#1154 from Bastian-Krause/bst/pdudaemon-delays
PDUDaemonDriver improvements
2 parents 6977ba3 + 01480af commit 573550e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

labgrid/driver/powerdriver.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,22 +396,19 @@ def on_activate(self):
396396
def on(self):
397397
r = self._requests.get(self._build_url('on'))
398398
r.raise_for_status()
399-
time.sleep(1) # give pdudaemon some time to execute the request
400399

401400
@Driver.check_active
402401
@step()
403402
def off(self):
404403
r = self._requests.get(self._build_url('off'))
405404
r.raise_for_status()
406-
time.sleep(1) # give pdudaemon some time to execute the request
407405

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

415412
@Driver.check_active
416413
def get(self):
417-
return None
414+
raise NotImplementedError("pdudaemon does not support retrieving the port's state")

0 commit comments

Comments
 (0)