projects
/
matthijs
/
projects
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
main: Add --test option for a dry run.
[matthijs/projects/backupninja.git]
/
src
/
lib
/
backupninja
/
action.py
diff --git
a/src/lib/backupninja/action.py
b/src/lib/backupninja/action.py
index e110d933d2aa521cbc7b334f3ad2bb072c28758f..3939c8d487e677968efae783cff753a3dec810ea 100644
(file)
--- a/
src/lib/backupninja/action.py
+++ b/
src/lib/backupninja/action.py
@@
-65,7
+65,7
@@
def run_action(action, opts, global_config):
# Create a handler for this action
handler = handlers.create_handler(action_ty, action_config)
# Run it
# Create a handler for this action
handler = handlers.create_handler(action_ty, action_config)
# Run it
- handler.run()
- handler.finish()
+ handler.run(
test=opts.test
)
+ handler.finish(
test=opts.test
)
except Exception, e:
log.error('Running action "%s" failed: %s', action, e)
except Exception, e:
log.error('Running action "%s" failed: %s', action, e)