Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
5733a529
Commit
5733a529
authored
Dec 16, 2013
by
Ilias Tsitsimpis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astakosclient: Pep8 fixes
parent
2d161610
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
astakosclient/astakosclient/__init__.py
astakosclient/astakosclient/__init__.py
+5
-5
No files found.
astakosclient/astakosclient/__init__.py
View file @
5733a529
...
...
@@ -511,7 +511,7 @@ class AstakosClient(object):
# --------------------------------------
# do a GET to ``API_TOKENS`` with a token
def
validate_token
(
self
,
token_id
,
belongs
T
o
=
None
):
def
validate_token
(
self
,
token_id
,
belongs
_t
o
=
None
):
""" Validate a temporary access token (oath2)
Keyword arguments:
...
...
@@ -520,15 +520,15 @@ class AstakosClient(object):
It returns back the token as well as information about the token
holder.
The belongs
T
o is optional and if it is given it must be inside the
The belongs
_t
o is optional and if it is given it must be inside the
token's scope.
In case of error raise an AstakosClientException.
"""
path
=
join_urls
(
self
.
api_tokens
,
str
(
token_id
))
if
belongs
T
o
is
not
None
:
params
=
{
'belongsTo'
:
belongs
T
o
}
if
belongs
_t
o
is
not
None
:
params
=
{
'belongsTo'
:
belongs
_t
o
}
path
=
'
%
s?
%
s'
%
(
path
,
urllib
.
urlencode
(
params
))
return
self
.
_call_astakos
(
path
,
method
=
"GET"
,
log_body
=
False
)
...
...
@@ -996,7 +996,7 @@ def parse_endpoints(endpoints, ep_name=None, ep_type=None,
else
:
return
catalog
except
KeyError
:
raise
NoEndpoints
()
raise
NoEndpoints
(
ep_name
,
ep_type
,
ep_region
,
ep_version_id
)
# --------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment