mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
e2e: ignore lines with 'Warning' in isAlreadyExistsCliError()
Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
8ea495ab81
commit
dbf2eb3905
@ -103,6 +103,10 @@ func isAlreadyExistsCLIError(err error) bool {
|
|||||||
if strings.TrimSuffix(s, "\n") == "" {
|
if strings.TrimSuffix(s, "\n") == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// Ignore warnings
|
||||||
|
if strings.Contains(s, "Warning") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// Resource already exists error message
|
// Resource already exists error message
|
||||||
if !strings.Contains(s, "Error from server (AlreadyExists)") {
|
if !strings.Contains(s, "Error from server (AlreadyExists)") {
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user