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:
Tim 2015-07-12 15:32:20 +02:00
parent 06558a7437
commit 0916370a9d
4 changed files with 57 additions and 15 deletions

View file

@ -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.')