Skip to content

Commit

Permalink
Fail w/ error if mount specified w/o mountable fs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman committed Oct 31, 2019
1 parent a45aaec commit fd849e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def manage(self):
if self._device.exists:
self._reformat()

if self.ultimately_present and self._volume['mount_point'] and not self._device.format.mountable:
raise BlivetAnsibleError("volume '%s' has a mount point but no mountable file system" % self._volume['name'])

# schedule resize if appropriate
if self._device.exists and self._volume['size']:
self._resize()
Expand Down

0 comments on commit fd849e7

Please sign in to comment.