Changeset 2063


Ignore:
Timestamp:
Jun 29, 2016, 4:57:30 PM (3 years ago)
Author:
kbut
Message:

initialice vars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-mirror/trunk/fuentes/n4d-lliurex-mirror.install/usr/share/n4d/python-plugins/MirrorManager.py

    r2043 r2063  
    3434                self.percentage=(0,None)
    3535                self.webserverprocess = None
    36                 self.defaultmirrorinfo = {"status_mirror":"Ok","last_mirror_date":None,"mirror_size":0,"progress":0}
     36                self.defaultmirrorinfo = {"status_mirror":"New","last_mirror_date":None,"mirror_size":0,"progress":0}
    3737               
    3838        #def init
     
    5858                                                self.variable[repo]["status_mirror"] = "Error"
    5959                                                self.n4d_vars.set_variable("LLIUREXMIRROR",self.variable)
     60                                else:
     61                                        self.variable[repo] = self.defaultmirrorinfo
    6062                except Exception as e:
    6163                        pass
Note: See TracChangeset for help on using the changeset viewer.