Re: [PATCH 5/8] Pass device and intf to doResize in ActionResizeFormat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-03-10 at 14:35 -1000, David Cantrell wrote:
> Pass the anaconda interface object and the device object to the
> format's doResize() method in ActionResizeFormat.

If we can manage it, I really don't want the format classes to know
anything about the device classes so we can minimize the entanglements.

Dave

> ---
>  storage/deviceaction.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/deviceaction.py b/storage/deviceaction.py
> index a303149..14eb511 100644
> --- a/storage/deviceaction.py
> +++ b/storage/deviceaction.py
> @@ -327,7 +327,7 @@ class ActionResizeFormat(DeviceAction):
>  
>      def execute(self, intf=None):
>          self.device.setup()
> -        self.device.format.doResize(intf=intf)
> +        self.device.format.doResize(intf=intf, device=self.device)
>  
>      def cancel(self):
>          self.device.format.targetSize = self.origSize

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux