diff options
author | Martin Sivak <msivak@redhat.com> | 2008-02-29 14:20:01 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2008-02-29 14:20:01 +0100 |
commit | 850308ffcf7a3a738bc74d0e547d8660342cf58c (patch) | |
tree | cf0ba227e8f7b5c9aae3ed36ac53e60c29afa385 /pyfirstaidkit/interpret.py | |
parent | b2672c852e0c858659ea7b721093fab336b251a3 (diff) | |
download | firstaidkit-850308ffcf7a3a738bc74d0e547d8660342cf58c.tar.gz firstaidkit-850308ffcf7a3a738bc74d0e547d8660342cf58c.tar.xz firstaidkit-850308ffcf7a3a738bc74d0e547d8660342cf58c.zip |
Fix behaviour when default flow does not exist and the auto mode is running without specified flow
Diffstat (limited to 'pyfirstaidkit/interpret.py')
-rw-r--r-- | pyfirstaidkit/interpret.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py index 0ff1aeb..79f2f21 100644 --- a/pyfirstaidkit/interpret.py +++ b/pyfirstaidkit/interpret.py @@ -96,8 +96,8 @@ class Tasker: oldlist = copy.copy(actlist) for plugin in oldlist: #If plugin does not contain the automated flow or if it ran correctly, remove it from list - if flow and not flow in pluginSystem.getplugin(plugin).getFlows(): - self._reporting.info("Plugin %s does not contain flow %s" % (plugin, flow,), origin = TASKER) + if (flow and not flow in pluginSystem.getplugin(plugin).getFlows()) or (not flow and not pluginSystem.getplugin(plugin).default_flow in pluginSystem.getplugin(plugin).getFlows()): + self._reporting.info("Plugin %s does not contain flow %s" % (plugin, flow or pluginSystem.getplugin(plugin).default_flow,), origin = TASKER) actlist.remove(plugin) elif pluginSystem.autorun(plugin, flow = flow): actlist.remove(plugin) |