From 8690937fb382e638ae89815bc9f80f8c6671b5e8 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Sat, 26 May 2018 02:46:11 +0100 Subject: [PATCH] Correct the OpenStack plugin example config (#40460) 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 3a85a43f547..086af9b0929 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