mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaScheduledDowntime: changdefault zone
This commit is contained in:
parent
5e19d3bada
commit
b1bf17569b
@ -2,8 +2,8 @@
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
use Icinga\Exception\ConfigurationError;
|
||||
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
||||
use RuntimeException;
|
||||
|
||||
class IcingaScheduledDowntime extends IcingaObject
|
||||
{
|
||||
@ -43,31 +43,16 @@ class IcingaScheduledDowntime extends IcingaObject
|
||||
];
|
||||
|
||||
/**
|
||||
* Render update property
|
||||
*
|
||||
* Avoid complaints for method names with underscore:
|
||||
* @codingStandardsIgnoreStart
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function renderUpdate_method()
|
||||
{
|
||||
// @codingStandardsIgnoreEnd
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @throws ConfigurationError
|
||||
*/
|
||||
protected function renderObjectHeader()
|
||||
{
|
||||
if ($this->isApplyRule()) {
|
||||
if (($to = $this->get('apply_to')) === null) {
|
||||
throw new ConfigurationError(
|
||||
throw new RuntimeException(sprintf(
|
||||
'Applied notification "%s" has no valid object type',
|
||||
$this->getObjectName()
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
return sprintf(
|
||||
@ -101,6 +86,6 @@ class IcingaScheduledDowntime extends IcingaObject
|
||||
|
||||
protected function prefersGlobalZone()
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user