Update validators for command arguments

refs #7564
This commit is contained in:
Gunnar Beutner 2015-01-29 10:30:02 +01:00
parent 7b4f1e217a
commit dd4a7ab240
2 changed files with 3 additions and 1 deletions

View File

@ -193,8 +193,10 @@
/* %if (methods.execute == "PluginNotification" || methods.execute == "PluginCheck" || methods.execute == "PluginEvent") { */
// %require "command",
%attribute %string "command",
%attribute %function "command",
%attribute %array "command" {
%attribute %string "*"
%attribute %function "*",
},
%attribute %dictionary "arguments" {
%attribute %string "*",

View File

@ -89,7 +89,7 @@ void PluginUtility::ExecuteCommand(const Command::Ptr& commandObj, const Checkab
Dictionary::Ptr raw_arguments = commandObj->GetArguments();
Value command;
if (!raw_arguments || raw_command.IsObjectType<Array>())
if (!raw_arguments || raw_command.IsObjectType<Array>() || raw_command.IsObjectType<Function>())
command = MacroProcessor::ResolveMacros(raw_command, macroResolvers, cr, NULL,
PluginUtility::EscapeMacroShellArg, resolvedMacros, useResolvedMacros);
else {