[PATCH 3/6] Move DEVICE_TYPE constants into storage and use them everywhere.

Brian C. Lane bcl at redhat.com
Wed Nov 7 22:56:53 UTC 2012


On Wed, Nov 07, 2012 at 03:57:36PM -0600, David Lehman wrote:

> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index e25e97a..2bb29e8 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -49,6 +49,13 @@ from pyanaconda.storage.formats import getFormat
>  from pyanaconda.storage.formats.fs import FS
>  from pyanaconda.storage.size import Size
>  from pyanaconda.storage import Root
> +from pyanaconda.storage import DEVICE_TYPE_LVM
> +from pyanaconda.storage import DEVICE_TYPE_BTRFS
> +from pyanaconda.storage import DEVICE_TYPE_PARTITION
> +from pyanaconda.storage import DEVICE_TYPE_MD
> +from pyanaconda.storage import DEVICE_TYPE_DISK

Maybe we need a storage.constants module to hold things like this?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20121107/6aa6a2d3/attachment.sig>


More information about the anaconda-patches mailing list