Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synnefo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
synnefo
Commits
3441188f
Commit
3441188f
authored
May 17, 2013
by
Ilias Tsitsimpis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astakosclient: Use path given in astakos_url (if any)
parent
00bd0c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
astakosclient/astakosclient/__init__.py
astakosclient/astakosclient/__init__.py
+3
-3
No files found.
astakosclient/astakosclient/__init__.py
View file @
3441188f
...
...
@@ -102,6 +102,7 @@ class AstakosClient():
self
.
logger
=
logger
self
.
netloc
=
p
.
netloc
self
.
scheme
=
p
.
scheme
self
.
path
=
p
.
path
.
lstrip
(
'/'
)
self
.
conn_class
=
conn_class
# ----------------------------------
...
...
@@ -124,8 +125,7 @@ class AstakosClient():
headers
=
{}
if
body
is
None
:
body
=
{}
if
request_path
[
0
]
!=
'/'
:
request_path
=
"/"
+
request_path
path
=
self
.
path
+
"/"
+
request_path
.
strip
(
'/'
)
# Build request's header and body
kwargs
=
{}
...
...
@@ -144,7 +144,7 @@ class AstakosClient():
with
self
.
conn_class
(
self
.
netloc
)
as
conn
:
# Send request
(
message
,
data
,
status
)
=
\
_do_request
(
conn
,
method
,
request_
path
,
**
kwargs
)
_do_request
(
conn
,
method
,
path
,
**
kwargs
)
except
Exception
as
err
:
self
.
logger
.
error
(
"Failed to send request: %s"
%
repr
(
err
))
raise
AstakosClientException
(
str
(
err
))
...
...
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