git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65a67a3
)
FIX: iotlab url+ authorization is coming from myslice.ini
author
Yasin Rahman
<mohammed-yasin.rahman@lip6.fr>
Mon, 2 Mar 2015 13:59:39 +0000
(14:59 +0100)
committer
Yasin Rahman
<mohammed-yasin.rahman@lip6.fr>
Mon, 2 Mar 2015 13:59:39 +0000
(14:59 +0100)
portal/actions.py
patch
|
blob
|
history
diff --git
a/portal/actions.py
b/portal/actions.py
index
fa3ed10
..
16fc3cf
100644
(file)
--- a/
portal/actions.py
+++ b/
portal/actions.py
@@
-1061,9
+1061,9
@@
def iotlab_create_user (wsgi_request, request, namespace = None, as_admin=False)
import time
from requests.auth import HTTPBasicAuth
- URL_REST = ConfigEngine.
default_
iotlab_url
- LOGIN_ADMIN = ConfigEngine.
default_
iotlab_admin_user
- PASSWORD_ADMIN = ConfigEngine.
default_
iotlab_admin_password
+ URL_REST = ConfigEngine.iotlab_url
+ LOGIN_ADMIN = ConfigEngine.iotlab_admin_user
+ PASSWORD_ADMIN = ConfigEngine.iotlab_admin_password
auth = HTTPBasicAuth(LOGIN_ADMIN,PASSWORD_ADMIN)
headers = {'content-type': 'application/json'}