Skip to content

Commit

Permalink
automatically add "register 0" to template objects in _public()
Browse files Browse the repository at this point in the history
  • Loading branch information
motivator committed May 6, 2011
1 parent 0704e75 commit 5435495
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nagii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def _public(self):
elif _.startswith('_custom'):
public.append((_[7:], getattr(self, _)))

if isinstance(self,NagiosTemplate):
public.append(("register",0))

return dict(public)

def _get_required(self):
Expand Down

0 comments on commit 5435495

Please sign in to comment.