Question regarding Nova CLI code snippet ?

Asked by Deepak Garg

I am not able to understand this part of the novaclient.client code

line 312:

def get_client_class(version):
    version_map = {
        '1.1': 'novaclient.v1_1.client.Client',
        '2': 'novaclient.v1_1.client.Client',
    }

For both the versions, same client class is being loaded ?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Deepak Garg
Solved:
Last query:
Last reply:
Revision history for this message
Yaguang Tang (heut2008) said :
#1

the version 2 of nova api is not ready,so all are routed to v1.1 ,

Revision history for this message
Vish Ishaya (vishvananda) said :
#2

There is no functional difference between the 1.1 api and the v2 api. It
was simply a rename so that we could remove the minor version number.

Revision history for this message
Deepak Garg (deepak.garg) said :
#3

Thanks, Vish.