added pointer for hostgroup in service

This commit is contained in:
Rafael.Timmerberg 2013-06-19 23:48:19 +02:00
commit 88e63fbfe1
4 changed files with 15 additions and 1 deletions

View file

@ -4,6 +4,10 @@ class Service:
self.command = command
self.comment = comment
self.parser = parser
self.hostgroup = None
def set_hostgroup(self, hostgroup):
self.hostgroup = hostgroup
def __str__(self):
return "Service('Name: " + self.name + "', 'Command: " + self.command + ", 'Parser: " + self.parser + "')"