We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7a980 commit 26a2e78Copy full SHA for 26a2e78
lib/fistpoint.py
@@ -1,5 +1,6 @@
1
import logging
2
3
+from lib.commands import SSHCommandFailed
4
from lib.host import Host
5
6
from typing import Final
@@ -58,7 +59,11 @@ def enable(self):
58
59
60
def disable(self):
61
logging.info(f"Disabling fistpoint {self.fistpointName}")
- self.host.ssh(["rm", self._get_path(self.fistpointName)])
62
+ try:
63
+ self.host.ssh(["rm", self._get_path(self.fistpointName)])
64
+ except SSHCommandFailed as e:
65
+ logging.info(f"Failed trying to disable fistpoint {self._get_path(self.fistpointName)} with error {e}")
66
+ raise
67
68
def __enter__(self):
69
self.enable()
0 commit comments