From be9de94eea66fd2865c8a0bfb06651d293f4bd7d Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 8 Jun 2018 00:48:49 +0100 Subject: [PATCH] Correct the OpenStack plugin example config (#40766) 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. (cherry picked from commit 12218f33a5c429676da8f3db0f91553c63a0314f) --- 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 90747a95293..d352450ae4c 100644 --- a/lib/ansible/plugins/inventory/openstack.py +++ b/lib/ansible/plugins/inventory/openstack.py @@ -94,11 +94,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