summaryrefslogtreecommitdiffstats
path: root/contrib/inventory
diff options
context:
space:
mode:
authorSimon Wydooghe <simon@wydooghe.com>2018-02-10 03:18:03 +0100
committerAbhijeet Kasurde <akasurde@redhat.com>2018-02-10 03:18:03 +0100
commitc119f6e6425a838d8b6109dbc41e7f38037b51e0 (patch)
tree38a2b8f4f1841c683b1fa64d5e30f9460b260755 /contrib/inventory
parentRun each Windows version independently in CI. (diff)
downloadansible-c119f6e6425a838d8b6109dbc41e7f38037b51e0.tar.xz
ansible-c119f6e6425a838d8b6109dbc41e7f38037b51e0.zip
Add 'digital_ocean' as group (#21631)
Diffstat (limited to 'contrib/inventory')
-rwxr-xr-xcontrib/inventory/digital_ocean.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/inventory/digital_ocean.py b/contrib/inventory/digital_ocean.py
index 3eb8bf9aa7..35991ccc97 100755
--- a/contrib/inventory/digital_ocean.py
+++ b/contrib/inventory/digital_ocean.py
@@ -40,6 +40,7 @@ is to use the output of the --env option with export:
The following groups are generated from --list:
- ID (droplet ID)
- NAME (droplet NAME)
+ - digital_ocean
- image_ID
- image_NAME
- distro_NAME (distribution NAME from image)
@@ -452,7 +453,8 @@ class DigitalOceanInventory(object):
self.inventory[droplet['name']] = [dest]
# groups that are always present
- for group in ('region_' + droplet['region']['slug'],
+ for group in ('digital_ocean',
+ 'region_' + droplet['region']['slug'],
'image_' + str(droplet['image']['id']),
'size_' + droplet['size']['slug'],
'distro_' + DigitalOceanInventory.to_safe(droplet['image']['distribution']),