Commit f90ea8a3 by Toshio Kuratomi

Merge pull request #10236 from emonty/features/deprecate-old-nova-inventory

Add deprecation notices to the old nova inventory
parents 0bb41018 96759cda
# Ansible OpenStack external inventory script # Ansible OpenStack external inventory script
# DEPRECATED: please use openstack.py inventory which is configured for
# auth using the os-client-config library and either clouds.yaml or standard
# openstack environment variables
[openstack] [openstack]
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>. # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# WARNING: This file is deprecated. New work should focus on the openstack.py
# inventory module, which properly handles multiple clouds as well as keystone
# v3 and keystone auth plugins
import sys import sys
import re import re
import os import os
...@@ -28,6 +32,9 @@ try: ...@@ -28,6 +32,9 @@ try:
except ImportError: except ImportError:
import simplejson as json import simplejson as json
sys.stderr.write("WARNING: this inventory module is deprecated. please migrate usage to openstack.py\n")
################################################### ###################################################
# executed with no parameters, return the list of # executed with no parameters, return the list of
# all groups and hosts # all groups and hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment