mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
doc: fix warnings in clouds.linode
This commit is contained in:
parent
5a9c4c2d60
commit
ed4a54f839
1 changed files with 9 additions and 9 deletions
|
@ -561,7 +561,7 @@ def create_disk_from_distro(vm_, linode_id, swap_size=None):
|
|||
r'''
|
||||
Creates the disk for the Linode from the distribution.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM profile to create the disk for.
|
||||
|
||||
linode_id
|
||||
|
@ -602,7 +602,7 @@ def create_swap_disk(vm_, linode_id, swap_size=None):
|
|||
r'''
|
||||
Creates the disk for the specified Linode.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM profile to create the swap disk for.
|
||||
|
||||
linode_id
|
||||
|
@ -631,7 +631,7 @@ def create_private_ip(vm_, linode_id):
|
|||
r'''
|
||||
Creates a private IP for the specified Linode.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM profile to create the swap disk for.
|
||||
|
||||
linode_id
|
||||
|
@ -748,7 +748,7 @@ def get_disk_size(vm_, swap, linode_id):
|
|||
r'''
|
||||
Returns the size of of the root disk in MB.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM to get the disk size for.
|
||||
'''
|
||||
disk_size = get_linode(kwargs={'linode_id': linode_id})['TOTALHD']
|
||||
|
@ -761,7 +761,7 @@ def get_distribution_id(vm_):
|
|||
r'''
|
||||
Returns the distribution ID for a VM
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM to get the distribution ID for
|
||||
'''
|
||||
distributions = _query('avail', 'distributions')['DATA']
|
||||
|
@ -890,7 +890,7 @@ def get_password(vm_):
|
|||
r'''
|
||||
Return the password to use for a VM.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The configuration to obtain the password from.
|
||||
'''
|
||||
return config.get_cloud_config_value(
|
||||
|
@ -946,7 +946,7 @@ def get_pub_key(vm_):
|
|||
r'''
|
||||
Return the SSH pubkey.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The configuration to obtain the public key from.
|
||||
'''
|
||||
return config.get_cloud_config_value(
|
||||
|
@ -958,7 +958,7 @@ def get_swap_size(vm_):
|
|||
r'''
|
||||
Returns the amoutn of swap space to be used in MB.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM profile to obtain the swap size from.
|
||||
'''
|
||||
return config.get_cloud_config_value(
|
||||
|
@ -970,7 +970,7 @@ def get_vm_size(vm_):
|
|||
r'''
|
||||
Returns the VM's size.
|
||||
|
||||
vm_
|
||||
vm\_
|
||||
The VM to get the size for.
|
||||
'''
|
||||
vm_size = config.get_cloud_config_value('size', vm_, __opts__)
|
||||
|
|
Loading…
Add table
Reference in a new issue