mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Vultr: Introducing vultrr_block_storage module (#43202)
This commit introduces a new module called vultr_block_storage/ It allows a user to manage block storage volumes on the Vultr cloud.
This commit is contained in:
parent
899eddf9e4
commit
57497a490b
5 changed files with 366 additions and 0 deletions
|
@ -299,3 +299,13 @@ class Vultr:
|
|||
resource='app',
|
||||
use_cache=True
|
||||
)
|
||||
|
||||
def get_region(self, region=None, key='name'):
|
||||
value = region or self.module.params.get('region')
|
||||
|
||||
return self.query_resource_by_key(
|
||||
key=key,
|
||||
value=value,
|
||||
resource='regions',
|
||||
use_cache=True
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue