summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/plugins.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-02-25 15:11:47 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-02-26 14:43:55 +0100
commitcfe9ad54127a42b79f9057d341ec94099630b884 (patch)
tree6901da68ca2008d47a4e8c13e713c1f5d2a0497a /pyfirstaidkit/plugins.py
parentd811af9085d1c7a1262141d232666354bb2379b1 (diff)
downloadfirstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.gz
firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.xz
firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.zip
Appeninding Return to the class names help to identify them in the plugin code.
Diffstat (limited to 'pyfirstaidkit/plugins.py')
-rw-r--r--pyfirstaidkit/plugins.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py
index 7900cdc..e7e302c 100644
--- a/pyfirstaidkit/plugins.py
+++ b/pyfirstaidkit/plugins.py
@@ -80,12 +80,12 @@ class Plugin(object):
#
flows["defflow"] = Flow({
initial : {ReturnValue: "prepare"},
- "prepare" : {Favorable: "diagnose"},
- "diagnose" : {Favorable: "clean", Unfavorable: "backup"},
- "backup" : {Favorable: "fix", Unfavorable: "clean"},
- "fix" : {Favorable: "clean", Unfavorable: "restore"},
- "restore" : {Favorable: "clean", Unfavorable: "clean"},
- "clean" : {Favorable: final}
+ "prepare" : {ReturnFavorable: "diagnose"},
+ "diagnose" : {ReturnFavorable: "clean", ReturnUnfavorable: "backup"},
+ "backup" : {ReturnFavorable: "fix", ReturnUnfavorable: "clean"},
+ "fix" : {ReturnFavorable: "clean", ReturnUnfavorable: "restore"},
+ "restore" : {ReturnFavorable: "clean", ReturnUnfavorable: "clean"},
+ "clean" : {ReturnFavorable: final}
}, description="The default, fully automated, fixing sequence")
def __init__(self, flow, reporting, dependencies):