cloudmesh / client

Deprecated: Version 3 of cloudmesh is a light weight cloud client to manage virtual clusters
http://cloudmesh.github.io/client
Other
3 stars 12 forks source link

change call to novaclient Client to use kwargs as current approach is deprecated #248

Closed badmutex closed 7 years ago

badmutex commented 7 years ago

Description

The current approach calls to Client like so:

            self.provider = client.Client(
                version,
                credentials["OS_USERNAME"],
                os_password,
                credentials["OS_TENANT_NAME"],
                credentials["OS_AUTH_URL"],
                cert)

This results in the warning:

UserWarning: Only VERSION, USERNAME, PASSWORD, PROJECT_ID and AUTH_URL arguments can be specified as positional arguments. All other variables should be keyword arguments. Note that this will become an error in Ocata.

Known components affected

cm image refresh

badmutex commented 7 years ago

See also #247

fugangwang commented 7 years ago

This was due to the historical reason when we have much older openstack and novaclient api that has to be supported. With the changing of API version we have to revisit this and make changes properly. For now let’s leave this open.

On Oct 19, 2016, at 12:23 PM, badi notifications@github.com wrote:

Description

The current approach calls to Client like so:

        self.provider = client.Client(
            version,
            credentials["OS_USERNAME"],
            os_password,
            credentials["OS_TENANT_NAME"],
            credentials["OS_AUTH_URL"],
            cert)

This results in the warning:

UserWarning: Only VERSION, USERNAME, PASSWORD, PROJECT_ID and AUTH_URL arguments can be specified as positional arguments. All other variables should be keyword arguments. Note that this will become an error in Ocata.

Known components affected

cm image refresh

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cloudmesh/client/issues/248, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS9UcUqF9VNWGALxL06D6_11v8N3LVWks5q1kQMgaJpZM4KbLfW.