[blivet:rhel7/master 07/10] Add a labelFormatOK method to the DeviceFormat's interface (#1038590)

David Lehman dlehman at redhat.com
Fri Jan 10 15:05:54 UTC 2014


On Thu, 2014-01-09 at 13:54 -0500, mulhern wrote:
> Related: rhbz#1038590
> 
> Need to expose this information to any client of a DeviceFormat since it's
> really an operational question about the labeling application not about
> the state the DeviceFormat is allowed to have.
> 
> In other words, have to allow for a legal DeviceFormat label which the labeling
> application can not handle.
> 
> Signed-off-by: mulhern <amulhern at redhat.com>
> ---
>  blivet/formats/__init__.py      | 14 ++++++++++++
>  blivet/formats/fs.py            | 20 +++++++++--------
>  blivet/formats/swap.py          |  5 +++++
>  tests/formats_test/misc_test.py | 49 ++++++++++++-----------------------------
>  4 files changed, 44 insertions(+), 44 deletions(-)
<snip>
> diff --git a/tests/formats_test/misc_test.py b/tests/formats_test/misc_test.py
> index 195a45b..be3b98a 100755
> --- a/tests/formats_test/misc_test.py
> +++ b/tests/formats_test/misc_test.py
> @@ -5,6 +5,7 @@ import unittest
>  from devicelibs_test import baseclass
>  from blivet.formats import device_formats
>  import blivet.formats.fs as fs
> +import blivet.formats.swas as swap

Little typo above ("swas"). The rest looks good.



More information about the anaconda-patches mailing list