migration.py
changeset 5442 3ed8afbbdf70
parent 5436 2455ca3a2a3a
child 5486 5790462343cb
equal deleted inserted replaced
5438:2a9181b82806 5442:3ed8afbbdf70
   109 
   109 
   110     def __init__(self, config, interactive=True, verbosity=1):
   110     def __init__(self, config, interactive=True, verbosity=1):
   111         self.config = config
   111         self.config = config
   112         if config:
   112         if config:
   113             # no config on shell to a remote instance
   113             # no config on shell to a remote instance
   114             self.config.init_log(logthreshold=logging.ERROR, debug=True)
   114             self.config.init_log(logthreshold=logging.ERROR)
   115         # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything
   115         # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything
   116         self.verbosity = verbosity
   116         self.verbosity = verbosity
   117         self.need_wrap = True
   117         self.need_wrap = True
   118         if not interactive or not verbosity:
   118         if not interactive or not verbosity:
   119             self.confirm = yes
   119             self.confirm = yes