[rhinstaller/blivet/pulls/274 master] Do not try to get LVM cache's size from stats for inactive LV
bcl
installerbot-noreply at redhat.com
Wed Nov 11 00:52:08 UTC 2015
> @@ -1786,8 +1786,9 @@ def __init__(self, cached_lv, size=None, md_size=None, exists=False, fast_pvs=No
>
> @property
> def size(self):
> - if self.exists:
> - return self.stats.size
> + stats = self.stats
Why use an intermediate variable here? It isn't unreadable to just say if self.stats and return self.stats.size
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/274#discussion_r44489091
More information about the anaconda-patches
mailing list