Ignore:
Timestamp:
May 5, 2017, 2:50:57 PM (3 years ago)
Author:
hectorgh
Message:

adding allow_none to xmlrpc client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-client-exe-consumer/trunk/fuentes/install-files/usr/share/n4d/python-plugins/ClientExeConsumer.py

    r951 r4612  
    7474
    7575                        if srv!=None and type(srv)==type(""):
    76                                 c=xmlrpclib.ServerProxy("https://"+srv+":9779")
     76                                c=xmlrpclib.ServerProxy("https://"+srv+":9779",allow_none=True)
    7777                                ret=c.get_available_oneshots("","ClientExeManager",self.md5_log)
    7878                                if type(ret)==type([]):
     
    196196                        srv="server"
    197197               
    198                 c=xmlrpclib.ServerProxy("https://%s:9779"%srv)
     198                c=xmlrpclib.ServerProxy("https://%s:9779"%srv,allow_none=True)
    199199                ret=c.get_boot_scripts("","ClientExeManager",mac)
    200200
Note: See TracChangeset for help on using the changeset viewer.