mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
fix python black issues
There was recently an upgrade to python black which made function documentation checking stricter. This caused network tox CI to break. The fix is to format the function doc text in the manner expected by black. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
c2e83b1d82
commit
c1b0002bc9
4 changed files with 14 additions and 14 deletions
|
|
@ -1175,7 +1175,7 @@ class NMUtil:
|
|||
return True
|
||||
|
||||
def create_checkpoint(self, timeout):
|
||||
""" Create a new checkpoint """
|
||||
"""Create a new checkpoint"""
|
||||
checkpoint = Util.call_async_method(
|
||||
self.nmclient,
|
||||
"checkpoint_create",
|
||||
|
|
@ -1192,11 +1192,11 @@ class NMUtil:
|
|||
return None
|
||||
|
||||
def destroy_checkpoint(self, path):
|
||||
""" Destroy the specified checkpoint """
|
||||
"""Destroy the specified checkpoint"""
|
||||
Util.call_async_method(self.nmclient, "checkpoint_destroy", [path])
|
||||
|
||||
def rollback_checkpoint(self, path):
|
||||
""" Rollback the specified checkpoint """
|
||||
"""Rollback the specified checkpoint"""
|
||||
Util.call_async_method(
|
||||
self.nmclient,
|
||||
"checkpoint_rollback",
|
||||
|
|
@ -1863,10 +1863,10 @@ class Cmd(object):
|
|||
)
|
||||
|
||||
def start_transaction(self):
|
||||
""" Hook before making changes """
|
||||
"""Hook before making changes"""
|
||||
|
||||
def finish_transaction(self):
|
||||
""" Hook for after all changes where made successfuly """
|
||||
"""Hook for after all changes where made successfuly"""
|
||||
|
||||
def rollback_transaction(self, idx, action, error):
|
||||
"""Hook if configuring a profile results in an error
|
||||
|
|
@ -1885,7 +1885,7 @@ class Cmd(object):
|
|||
)
|
||||
|
||||
def on_failure(self):
|
||||
""" Hook to do any cleanup on failure before exiting """
|
||||
"""Hook to do any cleanup on failure before exiting"""
|
||||
pass
|
||||
|
||||
def run_action_absent(self, idx):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue