Commit 60c2a7ab authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Turn off nologins check in state and statewait methods so that we can

use/test the event system while logins are turned off.
parent 9aa6b5ca
......@@ -20,7 +20,6 @@ import errno
import exceptions
import xmlrpclib
import signal
import syslog
import types
sys.path.append("@prefix@/lib")
from libdb import *
......@@ -1199,11 +1198,11 @@ class experiment:
return EmulabResponse(RESPONSE_FORBIDDEN,
output="Insufficient privledge to invoke method")
try:
checknologins()
pass
except NoLoginsError, e:
return EmulabResponse(RESPONSE_REFUSED, output=str(e))
# try:
# checknologins()
# pass
# except NoLoginsError, e:
# return EmulabResponse(RESPONSE_REFUSED, output=str(e))
argerror = CheckRequiredArgs(argdict, ("proj", "exp"))
if (argerror):
......@@ -1243,11 +1242,11 @@ class experiment:
return EmulabResponse(RESPONSE_BADVERSION,
output="Client version mismatch!")
try:
checknologins()
pass
except NoLoginsError, e:
return EmulabResponse(RESPONSE_REFUSED, output=str(e))
# try:
# checknologins()
# pass
# except NoLoginsError, e:
# return EmulabResponse(RESPONSE_REFUSED, output=str(e))
argerror = CheckRequiredArgs(argdict, ("proj", "exp", "state"))
if (argerror):
......@@ -1345,11 +1344,6 @@ class experiment:
time.sleep(1) # Slow down the polling.
continue
# Got an event, log it, and
syslog.syslog(syslog.LOG_INFO,
"statewait: " + ev.getObjType() + ", " +
ev.getEventType());
# ... check if it is one the user cares about.
if ((argdict["state"] == []) or
(ev.getEventType() in argdict["state"])):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment