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:
Yanis Guenane 2018-08-17 10:30:57 +02:00 committed by René Moser
commit 57497a490b
5 changed files with 366 additions and 0 deletions

View file

@ -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
)