Skip to content
Snippets Groups Projects
Commit 9d6078ab authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Merge branch 'fix-configuration-bug' into 'master'

Fix configuration error

See merge request ro/lofar_stager_api!1
parents dd4a9173 67976c8c
No related branches found
No related tags found
1 merge request!1Fix configuration error
...@@ -73,10 +73,12 @@ for f in ["~/.awe/Environment.cfg", "~/.stagingrc"]: ...@@ -73,10 +73,12 @@ for f in ["~/.awe/Environment.cfg", "~/.stagingrc"]:
print("%s - stager_access: Could not find user credential file \"%s\"." % (datetime.datetime.now(), file)) print("%s - stager_access: Could not find user credential file \"%s\"." % (datetime.datetime.now(), file))
continue continue
user = credentials["user"] if 'user' in credentials and 'password' in credentials:
passw = credentials["password"] user = credentials.get("user")
passw = credentials.get("password")
break break
if user is not None and passw is not None: if user is not None and passw is not None:
print("%s - stager_access: Creating proxy" % (datetime.datetime.now())) print("%s - stager_access: Creating proxy" % (datetime.datetime.now()))
proxy = xmlrpclib.ServerProxy("https://"+user+':'+passw+"@webportal.astron.nl/service-public/xmlrpc") proxy = xmlrpclib.ServerProxy("https://"+user+':'+passw+"@webportal.astron.nl/service-public/xmlrpc")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment