IcingaCommand: render methods_execute as execute
This commit is contained in:
parent
24fff442e0
commit
eaea917c1f
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
use Icinga\Module\Director\IcingaConfigHelper as c;
|
||||
|
||||
class IcingaCommand extends IcingaObject
|
||||
{
|
||||
protected $table = 'icinga_command';
|
||||
|
@ -15,4 +17,10 @@ class IcingaCommand extends IcingaObject
|
|||
'zone_id' => null,
|
||||
'object_type' => null,
|
||||
);
|
||||
|
||||
protected function renderMethods_execute()
|
||||
{
|
||||
// Execute is a reserved word in SQL, column name was prefixed
|
||||
return c::renderKeyValue('execute', $this->methods_execute, ' ');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue