mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
file permission update
This commit is contained in:
parent
49fa6669be
commit
5ac0683840
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue