mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
Couple minor tweaks for the sysadm server.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
static QJsonObject capJail(QJsonObject);
|
||||
|
||||
static QJsonObject getJailSettings(QJsonObject);
|
||||
|
||||
|
||||
};
|
||||
|
||||
} //end of namespace
|
||||
|
||||
Reference in New Issue
Block a user