[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Naparuba naparuba at gmail.com
Tue Feb 28 22:20:58 UTC 2012


The following commit has been merged in the debian/master branch:
commit 2c0b5f0300a724e74a3def0a3da214d890bb382d
Author: Naparuba <naparuba at gmail.com>
Date:   Wed Feb 15 11:08:20 2012 +0100

    Fix : catch contact with no contact_name.

diff --git a/shinken/objects/contact.py b/shinken/objects/contact.py
index 349688b..0e0bc64 100644
--- a/shinken/objects/contact.py
+++ b/shinken/objects/contact.py
@@ -103,7 +103,10 @@ class Contact(Item):
 
     #For debugging purpose only (nice name)
     def get_name(self):
-        return self.contact_name
+        try:
+            return self.contact_name
+        except AttributeError:
+            return 'UnnamedContact'
 
 
     # Search for notification_options with state and if t is

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list