Created
July 17, 2014 14:56
-
-
Save portante/829d64eef6a348773b53 to your computer and use it in GitHub Desktop.
A simple suggestion for formatting long lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/swiftclient/client.py b/swiftclient/client.py | |
| index 8bb1ded..1807526 100644 | |
| --- a/swiftclient/client.py | |
| +++ b/swiftclient/client.py | |
| @@ -309,25 +309,21 @@ version 1.0 which requires ST_AUTH, ST_USER, and ST_KEY environment | |
| variables to be set or overridden with -A, -U, or -K.''') | |
| try: | |
| - _ksclient = ksclient.Client(username=user, | |
| - password=key, | |
| - tenant_name=os_options.get('tenant_name'), | |
| - tenant_id=os_options.get('tenant_id'), | |
| - user_id=os_options.get('user_id'), | |
| - user_domain_name= | |
| - os_options.get('user_domain_name'), | |
| - user_domain_id= | |
| - os_options.get('user_domain_id'), | |
| - project_name= | |
| - os_options.get('project_name'), | |
| - project_id=os_options.get('project_id'), | |
| - project_domain_name= | |
| - os_options.get('project_domain_name'), | |
| - project_domain_id= | |
| - os_options.get('project_domain_id'), | |
| - debug=debug, | |
| - cacert=kwargs.get('cacert'), | |
| - auth_url=auth_url, insecure=insecure) | |
| + _ksclient = ksclient.Client( | |
| + username=user, | |
| + password=key, | |
| + tenant_name=os_options.get('tenant_name'), | |
| + tenant_id=os_options.get('tenant_id'), | |
| + user_id=os_options.get('user_id'), | |
| + user_domain_name=os_options.get('user_domain_name'), | |
| + user_domain_id=os_options.get('user_domain_id'), | |
| + project_name=os_options.get('project_name'), | |
| + project_id=os_options.get('project_id'), | |
| + project_domain_name=os_options.get('project_domain_name'), | |
| + project_domain_id=os_options.get('project_domain_id'), | |
| + debug=debug, | |
| + cacert=kwargs.get('cacert'), | |
| + auth_url=auth_url, insecure=insecure) | |
| except exceptions.Unauthorized: | |
| msg = 'Unauthorized. Check username, password and tenant name/id.' | |
| if auth_version in AUTH_VERSIONS_V3: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment