From: Ondrej Lichtner <olichtne(a)redhat.com>
This should be mostly useful for accessing Test module object instances
when the job isn't started yet, e.g. changing the parameters before
starting a prepared job. Or to figure out the estimated runtime before
calling job.wait.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Job.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lnst/Controller/Job.py b/lnst/Controller/Job.py
index 0e17934..d3786be 100644
--- a/lnst/Controller/Job.py
+++ b/lnst/Controller/Job.py
@@ -65,6 +65,10 @@ class Job(object):
raise Exception("Id already set")
self._id = val
+ @property
+ def what(self):
+ return self._what
+
@property
def host(self):
"""the initial namespace of the host the job is running
on"""
--
2.19.1