mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +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") == "" {
|
||||
continue
|
||||
}
|
||||
// Ignore warnings
|
||||
if strings.Contains(s, "Warning") {
|
||||
continue
|
||||
}
|
||||
// Resource already exists error message
|
||||
if !strings.Contains(s, "Error from server (AlreadyExists)") {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user