fuel-provision/bin/galloper-cli
Vladimir Kozhukalov ec48171842 Initial commit
Change-Id: Ib2c53a999937fecea268cfcb1c17a1d944b08c5e
2013-11-18 19:21:24 +04:00

41 lines
1.0 KiB
Python

#!/usr/bin/env python
# Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
import os
here = os.path.abspath(os.path.dirname(__file__))
sys.path[:0] = [os.path.join(here, "..")]
from oslo.config import cfg
from galloper.cmd.cli import run
CONF = cfg.CONF
CONF([], project='galloper',
default_config_files=[os.path.join(here, '../etc/galloper/galloper-cli.conf.example')])
def main():
run()
if __name__ == "__main__":
main()