Return the name of the server with the notification.
Remove some unnecessary includes. Fix validation on logging_ignore_interval which wouldn't allow anything less than 30
This commit is contained in:
@@ -982,3 +982,14 @@ class WebInterface(object):
|
||||
return result
|
||||
else:
|
||||
logger.warn('Unable to retrieve data.')
|
||||
|
||||
@cherrypy.expose
|
||||
def get_server_pref(self, pref=None, **kwargs):
|
||||
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
result = pms_connect.get_server_pref(pref=pref)
|
||||
|
||||
if result:
|
||||
return result
|
||||
else:
|
||||
logger.warn('Unable to retrieve data.')
|
||||
|
Reference in New Issue
Block a user