IcingaCommand: allow formatted timeout (e.g. 1m 4s)

refs #11340
This commit is contained in:
Thomas Gelf 2016-03-09 18:12:01 +01:00
parent faf40ec970
commit 9120db3f70
1 changed files with 4 additions and 5 deletions

View File

@ -29,6 +29,10 @@ class IcingaCommand extends IcingaObject
protected $supportsArguments = true;
protected $intervalProperties = array(
'timeout' => 'timeout',
);
protected static $pluginDir;
/**
@ -83,11 +87,6 @@ class IcingaCommand extends IcingaObject
return c::renderKeyValue('command', c::renderArray($parts));
}
protected function renderTimeout()
{
return $this->renderPropertyAsSeconds('timeout');
}
public static function setPluginDir($pluginDir)
{
self::$pluginDir = $pluginDir;