We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be2173 commit 75cb6caCopy full SHA for 75cb6ca
1 file changed
library/blivet.py
@@ -1714,7 +1714,7 @@ def _look_up_device(self):
1714
def _create(self):
1715
if self._device.format.type != "disklabel" or \
1716
(disklabel_type and self._device.format.label_type != disklabel_type):
1717
- if safe_mode:
+ if safe_mode and self._device.format.name != get_format(None).name:
1718
raise BlivetAnsibleError("cannot remove existing formatting and/or devices on disk '%s' "
1719
"(pool '%s') in safe mode" % (self._device.name, self._pool['name']))
1720
else:
0 commit comments