fix formatting an unformatted, pre-existing raid

This commit is contained in:
Michael Hudson-Doyle 2020-03-20 08:41:20 +13:00
parent 26e18679de
commit 293cb187a6
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ class _Formattable(ABC):
if action['type'] == 'format' and action['volume'] == self.id:
return action['fstype']
for action in self._m._orig_config:
if action['id'] == self.id and action['flag'] == 'swap':
if action['id'] == self.id and action.get('flag') == 'swap':
return 'swap'
return None