Revision fe7b0351 scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
100 | 100 |
# options used in more than one cmd |
101 | 101 |
node_opt = make_option("-n", "--node", dest="node", help="Target node", |
102 | 102 |
metavar="<node>") |
103 |
force_opt = make_option("-f", "--force", dest="force", action="store_true", |
|
104 |
default=False, help="Force the operation") |
|
105 | 103 |
|
106 | 104 |
# this is defined separately due to readability only |
107 | 105 |
import_opts = [ |
... | ... | |
143 | 141 |
], |
144 | 142 |
"", "Lists instance exports available in the ganeti cluster"), |
145 | 143 |
'export': (ExportInstance, ARGS_ONE, |
146 |
[node_opt, DEBUG_OPT, force_opt,
|
|
144 |
[node_opt, DEBUG_OPT, FORCE_OPT,
|
|
147 | 145 |
make_option("","--noshutdown", dest="shutdown", |
148 | 146 |
action="store_false", default=True, |
149 | 147 |
help="Don't shutdown the instance (unsafe)"), ], |
Also available in: Unified diff