Browse files

Fixed disk decorator.

  • Loading branch information...
1 parent 7e064a4 commit e12a948cdef836c6074fc1f1a89a1798fedda67d @xzased committed May 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 reparted/disk.py
View
4 reparted/disk.py
@@ -58,9 +58,9 @@
def diskDecorator(error=False):
def wrap(fn):
- def wrapped(self):
+ def wrapped(self, *args, **kwargs):
if bool(self._ped_disk):
- return fn(self)
+ return fn(self, *args, **kwargs)
if error:
raise DiskError(606)
return None

0 comments on commit e12a948

Please sign in to comment.