From 138d610441cc5e5837a416dd1fc45c0e8ede27a1 Mon Sep 17 00:00:00 2001 From: Tzu-Mainn Chen Date: Mon, 29 Jan 2018 16:17:36 +0100 Subject: flake cleanup --- playbooks/openstack/inventory.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'playbooks') diff --git a/playbooks/openstack/inventory.py b/playbooks/openstack/inventory.py index db4eb9809..d5a8c3e24 100755 --- a/playbooks/openstack/inventory.py +++ b/playbooks/openstack/inventory.py @@ -61,6 +61,7 @@ def base_openshift_inventory(cluster_hosts): return inventory + def get_docker_storage_mountpoints(volumes): '''Check volumes to see if they're being used for docker storage''' docker_storage_mountpoints = {} @@ -73,6 +74,7 @@ def get_docker_storage_mountpoints(volumes): docker_storage_mountpoints[attachment.server_id] = [attachment.device] return docker_storage_mountpoints + def build_inventory(): '''Build the dynamic inventory.''' cloud = shade.openstack_cloud() @@ -140,5 +142,6 @@ def build_inventory(): inventory['_meta']['hostvars'][server.name] = hostvars return inventory + if __name__ == '__main__': print(json.dumps(build_inventory(), indent=4, sort_keys=True)) -- cgit v1.2.3