very very strange python, One day I'll pay you back!
This commit is contained in:
parent
d1510a2407
commit
73c2c2cd92
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ class HostGroup(object):
|
|||
return self.processors
|
||||
|
||||
def get_services(self):
|
||||
return self.__services
|
||||
s = self.__services
|
||||
if not isinstance(s, list):
|
||||
s = self.__dict__["_HostGroup__services"]
|
||||
return s
|
||||
|
||||
def get_hosts(self):
|
||||
return self.hosts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue