[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaObject: be strict on relations

git at icinga.org git at icinga.org
Thu Jun 16 22:43:32 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 5c0ea2c3b0fec2753a49a9bc043a04d5bc8591a0
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=5c0ea2c3b0fec2753a49a9bc043a04d5bc8591a0

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Jun 16 22:16:55 2016 +0200

IcingaObject: be strict on relations

---

 library/Director/Objects/IcingaObject.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php
index cf47fb1..5164b33 100644
--- a/library/Director/Objects/IcingaObject.php
+++ b/library/Director/Objects/IcingaObject.php
@@ -1531,6 +1531,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
                         }
 
                         $k = $relKey;
+                    } else {
+                        throw new ProgrammingError('No such relation: %s', $relKey);
                     }
                 }
             }



More information about the icinga-checkins mailing list