X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSlivers.py;h=9e3b73d21b78306450b13c3c2c9e8ff83602cf11;hb=0cae31bf0ece6d050d4e6382b3e64939aa7977ba;hp=1f65e1eb372fc15aa45b78eb9956940e33e955a9;hpb=f1c8c09cc58bc86643605b862381417bf004b968;p=plcapi.git diff --git a/PLC/Methods/GetSlivers.py b/PLC/Methods/GetSlivers.py index 1f65e1e..9e3b73d 100644 --- a/PLC/Methods/GetSlivers.py +++ b/PLC/Methods/GetSlivers.py @@ -341,13 +341,10 @@ class GetSlivers(Method): # XMPP config for omf federation try: if not self.api.config.PLC_OMF_ENABLED: - raise Exception,"OMF disabled" - xmpp={'server':self.api.config.PLC_OMF_XMPP_SERVER, - 'user':self.api.config.PLC_OMF_XMPP_USER, - 'password':self.api.config.PLC_OMF_XMPP_PASSWORD, - } + raise Exception,"OMF not enabled" + xmpp={'server':self.api.config.PLC_OMF_XMPP_SERVER} except: - xmpp={'server':None,'user':None,'password':None} + xmpp={'server':None} node.update_last_contact()