projects
/
matthijs
/
projects
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handlers: Rename Handler class to Action.
[matthijs/projects/backupninja.git]
/
src
/
lib
/
backupninja
/
action.py
diff --git
a/src/lib/backupninja/action.py
b/src/lib/backupninja/action.py
index b4245f4c236b6a2961ecc6dc8932dd96f4956712..83afc954c8d782403d113b9e5dc3daa3eac65fb9 100644
(file)
--- a/
src/lib/backupninja/action.py
+++ b/
src/lib/backupninja/action.py
@@
-62,12
+62,12
@@
def run_action(action_config, opts, global_config):
try:
# Create a handler for this action
try:
# Create a handler for this action
-
handler = handlers.create_handler
(action_ty)
+
action = handlers.create_action
(action_ty)
# Let the handler load its configuration file
# Let the handler load its configuration file
-
handler
.load_config(action_config)
+
action
.load_config(action_config)
# Run it
# Run it
-
handler
.run(test=opts.test)
-
handler
.finish(test=opts.test)
+
action
.run(test=opts.test)
+
action
.finish(test=opts.test)
except Exception, e:
log.error('Running action "%s.%s" failed: %s', action_name, action_ty, e)
import traceback
except Exception, e:
log.error('Running action "%s.%s" failed: %s', action_name, action_ty, e)
import traceback