ci: do not hide pool deletion error
Print the error if any. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
9feb8401e1
commit
fd33d64b4f
1 file changed
+4
-1
@@ -111,7 +111,10 @@ func (p *PoolOperation) DeletePool(blockClient *BlockOperation, namespace, poolN
|
||||
for _, blockImage := range blockImagesList {
|
||||
if poolName == blockImage.PoolName {
|
||||
logger.Infof("force deleting block image %q in pool %q", blockImage, poolName)
|
||||
blockClient.DeleteBlockImage(blockImage, namespace)
|
||||
err := blockClient.DeleteBlockImage(blockImage, namespace)
|
||||
if err != nil {
|
||||
logger.Infof("failed deleting image %q from %q. %v", blockImage, poolName, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user