WIP: [#469] cli: Fix bug with name option for container list command #469
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ var listContainersCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
cnr := res.Container()
|
||||
if cnrName := containerSDK.Name(cnr); flagVarListName != "" && cnrName != flagVarListName {
|
||||
if cnrName := containerSDK.Name(cnr); flagVarListName != "" && !strings.Contains(cnrName, flagVarListName) {
|
||||
continue
|
||||
}
|
||||
cmd.Println(cnrID.String())
|
||||
|
@ -93,7 +93,7 @@ func initContainerListContainersCmd() {
|
|||
flags := listContainersCmd.Flags()
|
||||
|
||||
flags.StringVar(&flagVarListName, flagListName, "",
|
||||
"List containers by the attribute name",
|
||||
"List containers by the attribute name or by its part",
|
||||
)
|
||||
flags.StringVar(&flagVarListContainerOwner, flagListContainerOwner, "",
|
||||
"Owner of containers (omit to use owner from private key)",
|
||||
|
|
Loading…
Reference in a new issue