From: Ondrej Lichtner <olichtne(a)redhat.com>
Just moving the method higher so it's next to the getter...
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Recipe.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lnst/Controller/Recipe.py b/lnst/Controller/Recipe.py
index a10f081..0f3a54e 100644
--- a/lnst/Controller/Recipe.py
+++ b/lnst/Controller/Recipe.py
@@ -111,15 +111,15 @@ class BaseRecipe(object):
def ctl(self):
return self._ctl
+ def _set_ctl(self, ctl):
+ self._ctl = ctl
+
@property
def matched(self):
if self.ctl is None:
return None
return self.ctl._hosts
- def _set_ctl(self, ctl):
- self._ctl = ctl
-
def test(self):
"""Method to be implemented by the Tester"""
raise NotImplementedError("Method test must be defined by a child
class.")
--
2.16.1