debugging

This commit is contained in:
Anders Ingemann 2014-11-24 18:38:32 +01:00
parent 569e1246a5
commit 282e22c001
3 changed files with 6 additions and 12 deletions

View file

@ -135,10 +135,3 @@ class Manifest(object):
def __getstate__(self): def __getstate__(self):
return {'path': self.path, return {'path': self.path,
'data': self.data} 'data': self.data}
def __setstate__(self, vals):
self.path = vals.path
self.load(vals.data)
self.initialize()
self.validate()
self.parse()

View file

@ -34,11 +34,10 @@ def main():
server = manager.rpc_server server = manager.rpc_server
# Everything has been set up, begin the bootstrapping process # Everything has been set up, begin the bootstrapping process
ret = server.run(manifest, server.run(manifest,
debug=opts['--debug'], debug=opts['--debug'],
pause_on_error=False, pause_on_error=False,
dry_run=opts['--dry-run']) dry_run=opts['--dry-run'])
logging.getLogger(__name__).info(ret)
finally: finally:
manager.stop() manager.stop()

View file

@ -21,6 +21,8 @@ class TaskList(object):
:param dict info: The bootstrap information object :param dict info: The bootstrap information object
:param bool dry_run: Whether to actually run the tasks or simply step through them :param bool dry_run: Whether to actually run the tasks or simply step through them
""" """
logging.getLogger(__name__).debug('test')
return
# Create a list for us to run # Create a list for us to run
task_list = create_list(self.tasks) task_list = create_list(self.tasks)
# Output the tasklist # Output the tasklist