From a00eb2a63fa458c3ec11e8e8affc82e6330ea2df Mon Sep 17 00:00:00 2001 From: Patrik Holmqvist Date: Tue, 18 Feb 2025 10:20:23 +0100 Subject: [PATCH] black formating in create-sc-instance --- scripts/create-sc-instance | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/create-sc-instance b/scripts/create-sc-instance index 5ac3a1f5..a9e04f6f 100755 --- a/scripts/create-sc-instance +++ b/scripts/create-sc-instance @@ -77,9 +77,7 @@ def get_port( # pylint:disable=too-many-arguments,too-many-branches return port print(f"creating port: {port_name}") - port = conn.network.create_port( - network_id=network.id, name=port_name - ) + port = conn.network.create_port(network_id=network.id, name=port_name) if not isinstance(port, Port): raise TypeError(f"port should be {Port} but is {type(port)}") @@ -113,15 +111,15 @@ def create_server( # pylint: disable=too-many-arguments, too-many-locals f"flavor '{flavor.name}' includes no disk, using block storage for all disks" ) volume_type_name = "fast" - #volume_type = conn.volume.find_type(volume_type_name) - #if volume_type is None: - #raise RuntimeError(f"unable to find volume type '{volume_type_name}'") + # volume_type = conn.volume.find_type(volume_type_name) + # if volume_type is None: + # raise RuntimeError(f"unable to find volume type '{volume_type_name}'") for i, size in enumerate(disk_sizes): block_mapping = { "delete_on_termination": True, "destination_type": "volume", "volume_size": size, - #"volume_type": volume_type.name, + # "volume_type": volume_type.name, } # The first disk is the OS disk, base it on the selected image and bootable if i == 0: @@ -161,6 +159,7 @@ def create_server( # pylint: disable=too-many-arguments, too-many-locals return server + def main() -> ( None ): # pylint: disable=too-many-locals,too-many-statements,too-many-branches @@ -199,7 +198,7 @@ def main() -> ( ) parser.add_argument( "--network-name", - help="provide disk size in GB", + help="The network name in safespring, ex 'public'", required=True, ) parser.add_argument(