IcingaObject: fix use of unused exception

This commit is contained in:
Thomas Gelf 2018-10-01 12:01:20 +02:00
parent 20f0168bc7
commit a9b2910657

View File

@ -858,7 +858,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
{ {
$this->assertGroupsSupport(); $this->assertGroupsSupport();
if (! $this instanceof IcingaHost) { if (! $this instanceof IcingaHost) {
throw new ProgrammingError('getAppliedGroups is only available for hosts currently!'); throw new RuntimeException('getAppliedGroups is only available for hosts currently!');
} }
$type = strtolower($this->getType()); $type = strtolower($this->getType());