Changeset 3432
- Timestamp:
- Jan 26, 2017, 4:06:03 PM (4 years ago)
- Location:
- llx-netinstall/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
llx-netinstall/trunk/fuentes/debian/changelog
r3417 r3432 1 llx-netinstall (0.56.1) xenial; urgency=medium 2 3 * Fix bug in n4d methods 4 5 -- M.Angel Juan <m.angel.juan@gmail.com> Thu, 26 Jan 2017 16:05:28 +0100 6 1 7 llx-netinstall (0.56) xenial; urgency=medium 2 8 -
llx-netinstall/trunk/fuentes/install.llx-netinstall/usr/share/n4d/python-plugins/NetinstallManager.py
r3417 r3432 170 170 # Register new variable 171 171 ret,msg=manager.add_variable(var_name,'0','','Stats enabled','lliurex-statistics') 172 if ret==True:173 ret,msg=manager.init_variable(var_name,'0');174 if ret!=True:175 raise Exception('Error initalizing variable')176 else:177 raise Exception('Error adding variable')172 # if ret==True: 173 # ret,msg=manager.init_variable(var_name,'0'); 174 # if ret!=True: 175 # raise Exception('Error initalizing variable') 176 # else: 177 # raise Exception('Error adding variable') 178 178 if stats.lower() == 'true' or stats == '1': 179 179 # Enable … … 196 196 # Register new variable 197 197 ret,msg=manager.add_variable(var_name,'0','','Stats enabled','lliurex-statistics') 198 if ret==True: 199 ret,msg=manager.init_variable(var_name,'0'); 200 if ret!=True: 201 raise Exception('Error initalizing variable') 202 else: 203 raise Exception('Error adding variable') 198 stats_value = manager.get_variable(var_name) 199 return str(stats_value) 200 # if ret==True: 201 # ret,msg=manager.init_variable(var_name,'0'); 202 # if ret!=True: 203 # raise Exception('Error initalizing variable'+str(ret)+' '+str(msg)) 204 # else: 205 # raise Exception('Error adding variable') 204 206 else: 205 207 return str(stats_value)
Note: See TracChangeset
for help on using the changeset viewer.