mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Fix a missing "ok=true" in the ZFS list_pools API call.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ===============================
|
||||
// ===============================
|
||||
// PC-BSD REST API Server
|
||||
// Available under the 3-clause BSD License
|
||||
// Written by: Ken Moore <ken@pcbsd.org> DEC 2015
|
||||
@@ -690,6 +690,7 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmZfsRequest(const QJsonValue
|
||||
if(keys.contains("action")) {
|
||||
QString act = JsonValueToString(in_args.toObject().value("action"));
|
||||
if(act=="list_pools"){
|
||||
ok = true;
|
||||
QJsonObject pools = sysadm::ZFS::zpool_list();
|
||||
if(!pools.isEmpty()){ out->insert("list_pools",pools); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user