From 8de1053981b548a3d4791132c4d60fdf860221c3 Mon Sep 17 00:00:00 2001 From: Yasin Rahman Date: Mon, 2 Mar 2015 16:27:18 +0100 Subject: [PATCH] FIX: IOT-Lab create user on onelab registration validation --- portal/actions.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/portal/actions.py b/portal/actions.py index 16fc3cf8..047288d2 100644 --- 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'} -- 2.43.0