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:
012e4fe
)
FIX: IOT-Lab create user on onelab registration validation
author
Yasin Rahman
<mohammed-yasin.rahman@lip6.fr>
Mon, 2 Mar 2015 15:27:18 +0000
(16:27 +0100)
committer
Yasin Rahman
<mohammed-yasin.rahman@lip6.fr>
Mon, 2 Mar 2015 15:27:18 +0000
(16:27 +0100)
portal/actions.py
patch
|
blob
|
history
diff --git
a/portal/actions.py
b/portal/actions.py
index
16fc3cf
..
047288d
100644
(file)
--- a/
portal/actions.py
+++ b/
portal/actions.py
@@
-1060,10
+1060,11
@@
def iotlab_create_user (wsgi_request, request, namespace = None, as_admin=False)
import requests
import time
from requests.auth import HTTPBasicAuth
-
- URL_REST = ConfigEngine.iotlab_url
- LOGIN_ADMIN = ConfigEngine.iotlab_admin_user
- PASSWORD_ADMIN = ConfigEngine.iotlab_admin_password
+
+ engine = ConfigEngine()
+ URL_REST = engine.iotlab_url()
+ LOGIN_ADMIN = engine.iotlab_admin_user()
+ PASSWORD_ADMIN = engine.iotlab_admin_password()
auth = HTTPBasicAuth(LOGIN_ADMIN,PASSWORD_ADMIN)
headers = {'content-type': 'application/json'}