Catch error that occurs when there is no valid disk even created at this point
This commit is contained in:
parent
957257ecc3
commit
b0f99e2328
|
@ -144,7 +144,7 @@ func (d *Disk) MakeFilesystem(ctx context.Context) error {
|
|||
}
|
||||
return ErrFilesystemExists
|
||||
}
|
||||
if !strings.Contains(err.Error(), "can't find in /etc/fstab") {
|
||||
if !strings.Contains(err.Error(), "can't find in /etc/fstab") && !strings.Contains(err.Error(), "exit status 32") {
|
||||
return errors.WrapIf(err, "vhd: unexpected error from mount command")
|
||||
}
|
||||
// As long as we got an error back that was because we couldn't find thedisk
|
||||
|
|
Loading…
Reference in New Issue
Block a user