Commit af01729e authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

backport change from default to get -f option on cw shell, may be necessary...

backport change from default to get -f option on cw shell, may be necessary for the forthcoming migration...

--HG--
branch : stable
parent b9d3f7f884ce
......@@ -716,7 +716,13 @@ will connect to all defined sources. If 'migration' is given, appropriate \
sources for migration will be automatically selected.",
}),
('force',
{'short': 'f', 'action' : 'store_true',
'default' : False,
'help': 'don\'t check instance is up to date.'}
),
)
def run(self, args):
appid = pop_arg(args, 99, msg="No instance specified !")
config = cwcfg.config_for(appid)
......@@ -728,6 +734,7 @@ sources for migration will be automatically selected.",
else:
sources = ('all',)
config.set_sources_mode(sources)
config.repairing = self.config.force
mih = config.migration_handler()
if args:
for arg in args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment