If you setup a partition object with a mount point, and then call
partition.mount(), python will complain because mountpoint is a required option,
but thats not the case if you specified a mount when you created the object.  So
set mountpoint=None so that we can properly use the mountpoint we were created
with.

Signed-off-by: Josef Bacik <[email protected]>
---
 client/bin/partition.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/bin/partition.py b/client/bin/partition.py
index 61b24c0..e238373 100644
--- a/client/bin/partition.py
+++ b/client/bin/partition.py
@@ -638,7 +638,7 @@ class partition(object):
                 self.job.record('GOOD', None, fsck_cmd)
 
 
-    def mount(self, mountpoint, fstype=None, args='', record=True):
+    def mount(self, mountpoint=None, fstype=None, args='', record=True):
         """
         Mount this partition to a mount point
 
-- 
1.6.6.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to