Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
badmutex opened this issue Oct 19, 2016 · 2 comments
Assignees

Comments

@badmutex
Copy link
Contributor

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 badmutex self-assigned this Oct 19, 2016
@badmutex
Copy link
Contributor Author

See also #247

@fugangwang
Copy link
Member

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 #248, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS9UcUqF9VNWGALxL06D6_11v8N3LVWks5q1kQMgaJpZM4KbLfW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants