# HG changeset patch # User Julien Cristau # Date 1402650041 -7200 # Node ID da09975300aa8087a65a9b6430b4a9474e26239b # Parent fc02ba8654a717996e61fd5f04760dbaa5b4ff81 [cwctl] don't prompt for cube options in automatic mode Closes #3984223 diff -r fc02ba8654a7 -r da09975300aa cwctl.py --- a/cwctl.py Fri Jun 13 11:21:45 2014 +0200 +++ b/cwctl.py Fri Jun 13 11:00:41 2014 +0200 @@ -396,13 +396,14 @@ print helper.bootstrap(cubes, self.config.automatic, self.config.config_level) # input for cubes specific options - sections = set(sect.lower() for sect, opt, odict in config.all_options() - if 'type' in odict - and odict.get('level') <= self.config.config_level) - for section in sections: - if section not in ('main', 'email', 'pyro', 'web'): - print '\n' + underline_title('%s options' % section) - config.input_config(section, self.config.config_level) + if not self.config.automatic: + sections = set(sect.lower() for sect, opt, odict in config.all_options() + if 'type' in odict + and odict.get('level') <= self.config.config_level) + for section in sections: + if section not in ('main', 'email', 'pyro', 'web'): + print '\n' + underline_title('%s options' % section) + config.input_config(section, self.config.config_level) # write down configuration config.save() self._handle_win32(config, appid)