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

Usage of creds parameter is deprecated in msrest service client #194

Closed
jfthuong opened this issue Mar 21, 2019 · 2 comments
Closed

Usage of creds parameter is deprecated in msrest service client #194

jfthuong opened this issue Mar 21, 2019 · 2 comments
Labels

Comments

@jfthuong
Copy link

The getting started provides the following code to establish a connection

# Create a connection to the org
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)

However, while running this code, the following warning is raised:

c:\python37-32\lib\site-packages\msrest\service_client.py:260: DeprecationWarning: Creds parameter is deprecated. Set config.credentials instead.
    DeprecationWarning)

The example in Getting Started could be updated to provide the new way of setting the credentials.

@tedchamb
Copy link
Member

tedchamb commented Apr 1, 2019

Fixed in #198

@tedchamb tedchamb added the bug label Apr 1, 2019
@tedchamb
Copy link
Member

tedchamb commented Apr 3, 2019

@tedchamb tedchamb closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants