Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <[email protected]>
  • Loading branch information
aylei committed Jan 2, 2025
1 parent 77065be commit 4635d84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sky/provision/aws/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def _get_role(role_name: str):
f'{role_name}{colorama.Style.RESET_ALL} from AWS.')
raise exc

def _create_instance_profile_if_not_exists(instance_profile_name: str
) -> None:
def _create_instance_profile_if_not_exists(
instance_profile_name: str) -> None:
try:
iam.meta.client.create_instance_profile(
InstanceProfileName=instance_profile_name)
Expand All @@ -167,8 +167,8 @@ def _create_instance_profile_if_not_exists(instance_profile_name: str
)
raise exc

def _create_role_if_not_exists(role_name: str, policy_doc: Dict[str, Any]
) -> None:
def _create_role_if_not_exists(role_name: str,
policy_doc: Dict[str, Any]) -> None:
try:
iam.create_role(RoleName=role_name,
AssumeRolePolicyDocument=json.dumps(policy_doc))
Expand Down

0 comments on commit 4635d84

Please sign in to comment.