Make savanna able to be executed/used as sahara
* add endpoint alias for cli; * add saharaclient package with link to the savanna client. In future we'll remove savanna endpoints. Change-Id: Iec7fd8b13f7a6f1e1ab84a22b5175954189018a3
This commit is contained in:
committed by
Trevor McKay
parent
7691dcff6e
commit
8ef5137329
0
saharaclient/__init__.py
Normal file
0
saharaclient/__init__.py
Normal file
19
saharaclient/client.py
Normal file
19
saharaclient/client.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2014 Mirantis Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
from savannaclient import client as savannaclient
|
||||
|
||||
|
||||
Client = savannaclient.Client
|
||||
10
setup.cfg
10
setup.cfg
@@ -22,10 +22,16 @@ classifier =
|
||||
setup-hooks = pbr.hooks.setup_hook
|
||||
|
||||
[files]
|
||||
packages = savannaclient
|
||||
packages =
|
||||
savannaclient
|
||||
saharaclient
|
||||
|
||||
[entry_points]
|
||||
console_scripts = savanna = savannaclient.shell:main
|
||||
console_scripts =
|
||||
savanna = savannaclient.shell:main
|
||||
|
||||
# TODO(slukjanov): remove this code (temp to migrate to the new name)
|
||||
sahara = savannaclient.shell:main
|
||||
|
||||
[build_sphinx]
|
||||
all_files = 1
|
||||
|
||||
Reference in New Issue
Block a user