mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Detect if we get a 'cannot destroy' error from iohyve rmiso
This commit is contained in:
@@ -412,6 +412,10 @@ QJsonObject Iohyve::rmISO(QJsonObject jsin) {
|
||||
retObject.insert("error", output.at(i));
|
||||
return retObject;
|
||||
}
|
||||
if ( output.at(i).indexOf("cannot destroy") != -1 ) {
|
||||
retObject.insert("error", output.at(i));
|
||||
return retObject;
|
||||
}
|
||||
}
|
||||
retObject.insert("target", target);
|
||||
return retObject;
|
||||
|
||||
Reference in New Issue
Block a user