Display currently running version when listing jails
This commit is contained in:
parent
549d517cf9
commit
c2277ce10c
@ -275,6 +275,13 @@ func listJailsFromDirectory(dir string, dsname string) ([]Jail, error) {
|
|||||||
// FIXME ??? Shouldn't be ioc-$Name ?
|
// FIXME ??? Shouldn't be ioc-$Name ?
|
||||||
j.InternalName = rj.Name
|
j.InternalName = rj.Name
|
||||||
j.Devfs_ruleset = rj.Devfs_ruleset
|
j.Devfs_ruleset = rj.Devfs_ruleset
|
||||||
|
// Update release
|
||||||
|
r, err := getVersion(&j)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("ERROR getting jail %s version: %s\n", j.Name, err.Error())
|
||||||
|
} else {
|
||||||
|
j.Config.Release = r
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user