Question regarding Nova CLI code snippet ?

Asked by Deepak Garg on 2012-03-25

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:
2012-03-26
Last query:
2012-03-26
Last reply:
2012-03-25
Yaguang Tang (heut2008) said : #1

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

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.

Deepak Garg (deepak.garg) said : #3

Thanks, Vish.