diff options
author | Tzu-Mainn Chen <tzumainn@redhat.com> | 2018-01-29 16:17:36 +0100 |
---|---|---|
committer | Tzu-Mainn Chen <tzumainn@redhat.com> | 2018-01-29 16:17:36 +0100 |
commit | 138d610441cc5e5837a416dd1fc45c0e8ede27a1 (patch) | |
tree | f0040fd2d4564b1ac3d066a46a784b3406bf0409 /playbooks/openstack/inventory.py | |
parent | e88c30bd93413f303c9d27d1a26c6e473eb11cb4 (diff) | |
download | openshift-138d610441cc5e5837a416dd1fc45c0e8ede27a1.tar.gz openshift-138d610441cc5e5837a416dd1fc45c0e8ede27a1.tar.bz2 openshift-138d610441cc5e5837a416dd1fc45c0e8ede27a1.tar.xz openshift-138d610441cc5e5837a416dd1fc45c0e8ede27a1.zip |
flake cleanup
Diffstat (limited to 'playbooks/openstack/inventory.py')
-rwxr-xr-x | playbooks/openstack/inventory.py | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |