Skip to content

Commit c0f6c2a

Browse files
committed
xhyve: fix undefined err issue on setupMounts
addressed #158 Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent a2a0e24 commit c0f6c2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xhyve/xhyve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ func (d *Driver) generateQcow2Image(size int64) error {
734734

735735
func (d *Driver) setupMounts() error {
736736
if d.Virtio9p {
737-
err = d.setupVirt9pShare()
737+
err := d.setupVirt9pShare()
738738
if err != nil {
739739
log.Errorf("virtio-9p setup failed: %s", err.Error())
740740
return err
@@ -744,7 +744,7 @@ func (d *Driver) setupMounts() error {
744744
// Setup NFS sharing
745745
if d.NFSShare {
746746
log.Infof("NFS share folder must be root. Please insert root password.")
747-
err = d.setupNFSShare()
747+
err := d.setupNFSShare()
748748
if err != nil {
749749
log.Errorf("NFS setup failed: %s", err.Error())
750750
return err

0 commit comments

Comments
 (0)