mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00: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:
committed by
René Moser
parent
899eddf9e4
commit
57497a490b
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user