diff --git a/python/neutron-understack/neutron_understack/nautobot.py b/python/neutron-understack/neutron_understack/nautobot.py index 6d5ada82c..d925a6fdc 100644 --- a/python/neutron-understack/neutron_understack/nautobot.py +++ b/python/neutron-understack/neutron_understack/nautobot.py @@ -30,7 +30,9 @@ def log_for_status(self, response): except HTTPError as error: LOG.debug("Nautobot error: %(error)s", {"error": error}) - def make_api_request(self, url: str, method: str, payload: dict | None = None) -> dict: + def make_api_request( + self, url: str, method: str, payload: dict | None = None + ) -> dict: endpoint_url = urljoin(self.base_url, url) caller_function = inspect.stack()[self.CALLER_FRAME].function http_method = method.upper() diff --git a/python/neutron-understack/neutron_understack/undersync.py b/python/neutron-understack/neutron_understack/undersync.py index e8dcfe12a..a2e55258b 100644 --- a/python/neutron-understack/neutron_understack/undersync.py +++ b/python/neutron-understack/neutron_understack/undersync.py @@ -13,7 +13,7 @@ def __init__( self, auth_token: str | None = None, api_url: str | None = None, - timeout: int = 90 + timeout: int = 90, ) -> None: """Simple client for Undersync.""" self.token = auth_token or self.fetch_undersync_token() @@ -55,9 +55,13 @@ def client(self): return session def undersync_post(self, action: str, uuids: str) -> requests.Response: - response = self.client.post(f"{self.api_url}/v1/vlan-group/{uuids}/{action}", - timeout=self.timeout) - LOG.debug("undersync %(action)s resp: %(resp)s", {"resp": response.json(), "action": action}) + response = self.client.post( + f"{self.api_url}/v1/vlan-group/{uuids}/{action}", timeout=self.timeout + ) + LOG.debug( + "undersync %(action)s resp: %(resp)s", + {"resp": response.json(), "action": action}, + ) self.log_for_status(response) return response