Skip to content

Commit

Permalink
fix black failure
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvaraghu authored Jan 18, 2024
1 parent cbf6cba commit 78322e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,9 @@ def reboot(
# -------------------------------------------------------------------------
# poweroff - system shutdown
# -------------------------------------------------------------------------
def poweroff(self, in_min=0, at=None, on_node=None, all_re=True, other_re=False, vmhost=False):
def poweroff(
self, in_min=0, at=None, on_node=None, all_re=True, other_re=False, vmhost=False
):
"""
Perform a system shutdown, with optional delay (in minutes) .
Expand Down Expand Up @@ -1274,9 +1276,7 @@ def poweroff(self, in_min=0, at=None, on_node=None, all_re=True, other_re=False,
else:
cmd = E("request-power-off")
try:
return self._system_operation(
cmd, in_min, at, all_re, other_re, vmhost
)
return self._system_operation(cmd, in_min, at, all_re, other_re, vmhost)
except Exception as err:
if err.rsp.findtext(".//error-severity") != "warning":
raise err
Expand Down

0 comments on commit 78322e7

Please sign in to comment.