Adjust the fetch plugin function to use the new syntax that brandon just committed upstream (did not work properly anyway with the old syntax)

This commit is contained in:
Ken Moore
2017-06-02 10:29:52 -04:00
parent b428fb531a
commit acbf8d6730

View File

@@ -218,7 +218,7 @@ QJsonObject Iocage::fetchPlugin(QJsonObject inobj){
QString jobprefix = "sysadm_iocage_fetch_plugin_";
plugin = plugin.section(" ",0,0, QString::SectionSkipEmpty); //all valid releases are a single word - do not allow injection of other commands
if(cids.contains(jobprefix+plugin) ){ return QJsonObject(); } //this fetch job is already running
DISPATCHER->queueProcess(jobprefix+plugin, "iocage fetch -P "+plugin+" "+inet);
DISPATCHER->queueProcess(jobprefix+plugin, "iocage fetch -P --name "+plugin+" "+inet);
retObject.insert("started_dispatcher_id", jobprefix+plugin);
return retObject;
}