Skip to content

Commit

Permalink
Fix the scan output.
Browse files Browse the repository at this point in the history
We were printing something like: "devicebase: {}"
  • Loading branch information
floitsch committed Dec 5, 2024
1 parent b0f2aed commit 3b49dfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/jag/commands/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,16 @@ func ScanCmd() *cobra.Command {
return err
}

json := device.ToJson()
if autoSelect != nil {
outputter = yaml.NewEncoder(os.Stdout)
err = outputter.Encode(device)
err = outputter.Encode(json)
if err != nil {
return err
}
}

cfg.Set("device", device.ToJson())
cfg.Set("device", json)
return cfg.WriteConfig()
},
}
Expand Down

0 comments on commit 3b49dfe

Please sign in to comment.