address formatting from black 21.4b0 (#831)

This commit is contained in:
bmc-msft
2021-04-26 12:35:16 -04:00
committed by GitHub
parent b5db1bd3fe
commit cf3d904940
23 changed files with 128 additions and 128 deletions

View File

@ -95,7 +95,7 @@ def process_state_update(obj: HasState) -> None:
def process_state_updates(obj: HasState, max_updates: int = 5) -> None:
""" process through the state machine for an object """
"""process through the state machine for an object"""
for _ in range(max_updates):
state = obj.state

View File

@ -40,7 +40,7 @@ def get_auth_token(request: func.HttpRequest) -> Optional[str]:
def parse_jwt_token(request: func.HttpRequest) -> Result[UserInfo]:
""" Obtains the Access Token from the Authorization Header """
"""Obtains the Access Token from the Authorization Header"""
token_str = get_auth_token(request)
if token_str is None:
return Error(

View File

@ -366,7 +366,7 @@ class Node(BASE_NODE, ORMMixin):
self.save()
def set_halt(self) -> None:
""" Tell the node to stop everything. """
"""Tell the node to stop everything."""
self.set_shutdown()
self.stop()
self.set_state(NodeState.halt)

View File

@ -185,7 +185,7 @@ class Pool(BASE_POOL, ORMMixin):
self.save()
def shutdown(self) -> None:
""" shutdown allows nodes to finish current work then delete """
"""shutdown allows nodes to finish current work then delete"""
from .nodes import Node
from .scalesets import Scaleset
@ -207,7 +207,7 @@ class Pool(BASE_POOL, ORMMixin):
self.save()
def halt(self) -> None:
""" halt the pool immediately """
"""halt the pool immediately"""
from .nodes import Node
from .scalesets import Scaleset