Couple minor tweaks for the sysadm server.

This commit is contained in:
Ken Moore
2017-11-22 10:28:21 -05:00
parent ce53715265
commit 42adfc6ca1
3 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ QJsonObject Dispatcher::CreateDispatcherEventNotification(QString ID, QJsonObjec
}
//Now assemble the output as needed
if(namesp.isEmpty() || name.isEmpty()){ return QJsonObject(); } //no event
if(namesp.isEmpty() || name.isEmpty() || args.isEmpty()){ return QJsonObject(); } //no event
args.insert("event_system",namesp+"/"+name);
return args;
}

View File

@@ -140,7 +140,7 @@ QJsonObject Iocage::listPlugins(){
bool ok = false;
QStringList remote = General::RunCommand(ok,"iocage list -PhR").split("\n");
QStringList local = General::RunCommand("iocage list -Ph").split("\n");
if(!ok && remote.first().startsWith("Traceback")){
if(!ok && remote.first().startsWith("Traceback")){
//older version of iocage - no local browsing (remote uses the local syntax)
remote = local;
local.clear();

View File

@@ -46,7 +46,7 @@ public:
static QJsonObject capJail(QJsonObject);
static QJsonObject getJailSettings(QJsonObject);
};
} //end of namespace