[rhinstaller/blivet/pulls/192 master] Fix UnboundLocalError in FSMinSize (#1249304)

bcl installerbot-noreply at redhat.com
Tue Aug 4 00:29:05 UTC 2015


> @@ -54,7 +54,7 @@ def _getResizeInfo(self):
>          except OSError as e:
>              error_msg = "failed to gather info from resize program: %s" % e
>          if rc:
> -            error_msg = "failed to gather info from resize program: %s" % e
> +            error_msg = "failed to gather info from resize program: %d" % rc

Seems like this would be better inside the try: just so it's clear it only runs when it succeeds.

-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/192#discussion_r36146904


More information about the anaconda-patches mailing list