Add GPl License header to rackhd inventory file. (#24354)
This commit is contained in:
parent
d5ae6cc585
commit
2420bca0b5
1 changed files with 17 additions and 2 deletions
|
@ -1,10 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import json
|
||||
import os
|
||||
import requests
|
||||
import types
|
||||
import argparse
|
||||
|
||||
RACKHD_URL = 'http://localhost:8080'
|
||||
|
||||
|
@ -51,6 +65,7 @@ def parse_args():
|
|||
parser.add_argument('--list', action='store_true')
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
try:
|
||||
# check if rackhd url(ie:10.1.1.45:8080) is specified in the environment
|
||||
RACKHD_URL = 'http://' + str(os.environ['RACKHD_URL'])
|
||||
|
|
Loading…
Reference in a new issue