File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Copyright 2012-2013 OpenStack, LLC.
2- #
31# Licensed under the Apache License, Version 2.0 (the "License"); you may
42# not use this file except in compliance with the License. You may obtain
53# a copy of the License at
1210# License for the specific language governing permissions and limitations
1311# under the License.
1412#
13+
14+ __all__ = ['__version__' ]
15+
16+ import pbr .version
17+
18+ version_info = pbr .version .VersionInfo ('python-openstackclient' )
19+ try :
20+ __version__ = version_info .version_string ()
21+ except AttributeError :
22+ __version__ = None
Original file line number Diff line number Diff line change 2424from cliff import app
2525from cliff import help
2626
27+ import openstackclient
2728from openstackclient .common import clientmanager
2829from openstackclient .common import commandmanager
2930from openstackclient .common import exceptions as exc
3031from openstackclient .common import openstackkeyring
3132from openstackclient .common import utils
3233
3334
34- VERSION = '0.2.rc1'
3535KEYRING_SERVICE = 'openstack'
3636
3737DEFAULT_COMPUTE_API_VERSION = '2'
@@ -64,7 +64,7 @@ class OpenStackShell(app.App):
6464 def __init__ (self ):
6565 super (OpenStackShell , self ).__init__ (
6666 description = __doc__ .strip (),
67- version = VERSION ,
67+ version = openstackclient . __version__ ,
6868 command_manager = commandmanager .CommandManager ('openstack.cli' ))
6969
7070 # This is instantiated in initialize_app() only when using
You can’t perform that action at this time.
0 commit comments