Skip to content

Commit

Permalink
Revert "lxc/init: Add error handling for launching container when ima…
Browse files Browse the repository at this point in the history
…ge is of type VM"

This reverts commit b222930.
  • Loading branch information
kadinsayani committed Sep 26, 2024
1 parent 85392b1 commit 6592e3f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lxc/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,6 @@ func (c *cmdInit) create(conf *config.Config, args []string, launch bool) (lxd.I
return nil, "", errors.New(i18n.G("Asked for a VM but image is of type container"))
}

if imgInfo.Type != "container" && !c.flagVM {
return nil, "", errors.New(i18n.G("Asked for a container but image is of type VM"))
}

req.Type = api.InstanceType(imgInfo.Type)
}

Expand Down

0 comments on commit 6592e3f

Please sign in to comment.