whitespacing.... :)
This commit is contained in:
parent
2c40772796
commit
883e59a3d1
22 changed files with 66 additions and 109 deletions
|
|
@ -16,7 +16,6 @@ class Layout:
|
|||
else:
|
||||
self._hostgroups = hostgroups
|
||||
|
||||
|
||||
def _to_config_dict(self, configDict):
|
||||
me = {}
|
||||
me["hostgroups"] = [hg.name for hg in self.get_hostgroups()]
|
||||
|
|
@ -24,8 +23,7 @@ class Layout:
|
|||
configDict["layouts"][self.get_name()] = me
|
||||
for hostgroup in self.get_hostgroups():
|
||||
hostgroup._to_config_dict(configDict)
|
||||
|
||||
|
||||
|
||||
def get_name(self):
|
||||
return self._name
|
||||
|
||||
|
|
@ -35,7 +33,6 @@ class Layout:
|
|||
def get_hostgroups(self):
|
||||
return self._hostgroups
|
||||
|
||||
|
||||
def __str__(self):
|
||||
ret = "Layout: 'Name:" + str(self.name) + "', 'Enabled: " + str(self.enabled) + " "
|
||||
for group in self.hostgroups:
|
||||
|
|
@ -78,4 +75,4 @@ class LayoutList:
|
|||
ret += "Plugins: " + str(self.plugins) + "\n"
|
||||
for layout in self.layouts:
|
||||
ret += str(layout) + "\n"
|
||||
return ret
|
||||
return ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue