summaryrefslogtreecommitdiffstats
path: root/storage/deviceaction.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-02-24 00:04:52 -0600
committerDavid Lehman <dlehman@redhat.com>2009-02-24 00:04:52 -0600
commit85028569883e76514a5983939e569bdb6d5743a9 (patch)
treecbacf025a9039398da4168cdfb821cf74cc6ee7e /storage/deviceaction.py
parentea85b249d3324bc90d89bbc17ddb4b5475ba6f7b (diff)
downloadanaconda-85028569883e76514a5983939e569bdb6d5743a9.tar.gz
anaconda-85028569883e76514a5983939e569bdb6d5743a9.tar.xz
anaconda-85028569883e76514a5983939e569bdb6d5743a9.zip
Make it easy to specify a format's device at creation/setup time.
Diffstat (limited to 'storage/deviceaction.py')
-rw-r--r--storage/deviceaction.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index 09c2277de..3be35a14c 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -230,7 +230,8 @@ class ActionCreateFormat(DeviceAction):
# XXX we should set partition type flag as needed
# - or should that be in the CreateDevice action?
self.device.setup()
- self.device.format.create(options=self.device.formatArgs)
+ self.device.format.create(device=self.device.path,
+ options=self.device.formatArgs)
def cancel(self):
self.device.format = self.origFormat