dummy workaround for default pisi hs

This commit is contained in:
Faik Uygur
2008-02-22 09:51:24 +00:00
parent 604818c4e0
commit 3719e5201c
+8 -4
View File
@@ -48,7 +48,7 @@ Lists previous operations."""
help=_("Output only the last n operations")) help=_("Output only the last n operations"))
group.add_option("-s", "--snapshot", action="store_true", default=False, group.add_option("-s", "--snapshot", action="store_true", default=False,
help=_("Take snapshot of the current system")) help=_("Take snapshot of the current system"))
group.add_option("-t", "--takeback", action="store", type="int", default=1, group.add_option("-t", "--takeback", action="store", type="int", default=-1,
help=_("Takeback to the state after the given operation finished")) help=_("Takeback to the state after the given operation finished"))
def take_snapshot(self): def take_snapshot(self):
@@ -75,7 +75,11 @@ Lists previous operations."""
if ctx.get_option('snapshot'): if ctx.get_option('snapshot'):
self.take_snapshot() self.take_snapshot()
return
elif ctx.get_option('takeback'): elif ctx.get_option('takeback'):
self.takeback(ctx.get_option('takeback')) opno = ctx.get_option('takeback')
else: if opno != -1:
self.print_history() self.takeback(opno)
return
self.print_history()