mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2025-03-08 07:49:08 +00:00
Refactor prefix search
This commit is contained in:
parent
660c8a5dba
commit
bb5a352215
1 changed files with 1 additions and 1 deletions
2
appvm.go
2
appvm.go
|
@ -111,7 +111,7 @@ func list(l *libvirt.Libvirt) {
|
|||
|
||||
fmt.Println("Started VM:")
|
||||
for _, d := range domains {
|
||||
if d.Name[0:5] == "appvm" {
|
||||
if strings.HasPrefix(d.Name, "appvm") {
|
||||
fmt.Println("\t", d.Name[6:])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue