summaryrefslogtreecommitdiffstats
path: root/pyanaconda/dispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/dispatch.py')
-rw-r--r--pyanaconda/dispatch.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyanaconda/dispatch.py b/pyanaconda/dispatch.py
index 6aeae38ba..18bfa58a9 100644
--- a/pyanaconda/dispatch.py
+++ b/pyanaconda/dispatch.py
@@ -86,6 +86,8 @@ class Step(object):
self.name = name
self.target = target # None for dynamic target (e.g. gui view)
self._sched = self.SCHED_UNSCHEDULED
+ self.client_data = {} # used by the client code, not reset when
+ # scheduling is reverted
def _reschedule(self, to_sched, current_step):
s_from = self.sched
@@ -334,6 +336,9 @@ class Dispatcher(object):
except errors.DispatchError as e:
log.debug("dispatch: %s" % e)
+ def step_data(self, step):
+ return self.steps[step].client_data
+
def step_disabled(self, step):
""" True if step is not yet scheduled to be run or will never be run
(i.e. is skipped).