rados: Tell that pool removal failed. Not that it doesn't exist.

If removing a pool fails it could have various reasons. The pool
might be protected from removal (nodelete flag).
This commit is contained in:
Wido den Hollander 2015-05-05 14:22:43 +02:00
parent 3f50b5e19e
commit 5c9e9da879

View File

@ -2165,7 +2165,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
if (ret >= 0) {
cout << "successfully deleted pool " << nargs[1] << std::endl;
} else { //error
cerr << "pool " << nargs[1] << " does not exist" << std::endl;
cerr << "pool " << nargs[1] << " could not be removed" << std::endl;
}
}
else if (strcmp(nargs[0], "lssnap") == 0) {