From 12218f33a5c429676da8f3db0f91553c63a0314f Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Sun, 20 May 2018 19:50:00 +0100 Subject: [PATCH] Correct the OpenStack plugin example config The current example configuration is not quite right, so this patch implements a fix which corrects it The 'inventory_hostname' argument is removed as it's the same value as the default. --- lib/ansible/plugins/inventory/openstack.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/ansible/plugins/inventory/openstack.py b/lib/ansible/plugins/inventory/openstack.py index 333b0e9c0ee..9727153b66a 100644 --- a/lib/ansible/plugins/inventory/openstack.py +++ b/lib/ansible/plugins/inventory/openstack.py @@ -93,11 +93,9 @@ DOCUMENTATION = ''' EXAMPLES = ''' # file must be named openstack.yaml or openstack.yml # Make the plugin behave like the default behavior of the old script -simple_config_file: - plugin: openstack - inventory_hostname: 'name' - expand_hostvars: true - fail_on_errors: true +plugin: openstack +expand_hostvars: yes +fail_on_errors: yes ''' import collections