file permission update

This commit is contained in:
Wayne Gemmell 2023-02-20 16:49:16 +02:00 committed by Megan Wilhite
parent 49fa6669be
commit 5ac0683840

View file

@ -366,11 +366,9 @@ def create(vm_):
if vpc_name is not None:
vpc = _get_vpc_by_name(vpc_name)
if vpc is None:
raise SaltCloudConfigError(
"Invalid VPC name provided"
)
raise SaltCloudConfigError("Invalid VPC name provided")
else:
kwargs["vpc_uuid"] = vpc[vpc_name]['id']
kwargs["vpc_uuid"] = vpc[vpc_name]["id"]
else:
private_networking = config.get_cloud_config_value(
"private_networking",
@ -626,7 +624,7 @@ def query(
)
)
# vpcs method doesn't like the / at the end.
if method == 'vpcs':
if method == "vpcs":
path = "{}/{}".format(base_path, method)
else:
path = "{}/{}/".format(base_path, method)