mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
add TestContainerApiPause case
Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
This commit is contained in:
@@ -389,6 +389,9 @@ func getPausedContainers() (string, error) {
|
||||
func getSliceOfPausedContainers() ([]string, error) {
|
||||
out, err := getPausedContainers()
|
||||
if err == nil {
|
||||
if len(out) == 0 {
|
||||
return nil, err
|
||||
}
|
||||
slice := strings.Split(strings.TrimSpace(out), "\n")
|
||||
return slice, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user