Changeset 4362


Ignore:
Timestamp:
Apr 20, 2017, 1:16:53 PM (2 years ago)
Author:
mabarracus
Message:

more verbose errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/lmd-server.install/usr/share/n4d/python-plugins/LmdImageManager.py

    r4358 r4362  
    318318        def check_mirror(self):
    319319                try:
    320                     subprocess.check_call(["lliurex-version","-x","mirror"], shell=False)
     320                    r=subprocess.check_call(["lliurex-version","-x","mirror"])
    321321                   
    322322                    #status will be mirrorReady, msg.llx16.ARCHITECTURES(list) will always be [i386,amd64]
     
    324324                    return {'status': True,'msg': {'llx16': {'ARCHITECTURES':['i386','amd64']}}}
    325325                except Exception as e:
    326                     return {'status': False,'msg': {'llx16':{'ARCHITECTURES':[]}}}
     326                    return {'status': False,'msg': {'llx16':{'ARCHITECTURES':['None']},'msg':str(e)}}
    327327       
    328328        # OLD METHOD TO CHECK WITH VARS (Disabled)
Note: See TracChangeset for help on using the changeset viewer.