Skip to content

Commit

Permalink
Merge pull request #464 from stgraber/main
Browse files Browse the repository at this point in the history
incus/launch: Fix --console
  • Loading branch information
brauner authored Feb 3, 2024
2 parents 2cb70c7 + 30d5708 commit e224ed9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/incus/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ func (c *cmdLaunch) Run(cmd *cobra.Command, args []string) error {

// Check if the instance was started by the server.
if d.HasExtension("instance_create_start") {
// Handle console attach
if c.flagConsole != "" {
console := cmdConsole{}
console.global = c.global
console.flagType = c.flagConsole
return console.Console(d, name)
}

return nil
}

Expand Down

0 comments on commit e224ed9

Please sign in to comment.