Do not prompt to add backends if not in an interactive session
This commit is contained in:
parent
2977c879e7
commit
3154d7f79d
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class ConsoleApplication(BaseApplication):
|
||||||
def check_loaded_backends(self, default_config=None):
|
def check_loaded_backends(self, default_config=None):
|
||||||
while len(self.enabled_backends) == 0:
|
while len(self.enabled_backends) == 0:
|
||||||
print 'Warning: there is currently no configured backend for %s' % self.APPNAME
|
print 'Warning: there is currently no configured backend for %s' % self.APPNAME
|
||||||
if not self.ask('Do you want to configure backends?', default=True):
|
if not self.interactive or not self.ask('Do you want to configure backends?', default=True):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.prompt_create_backends(default_config)
|
self.prompt_create_backends(default_config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue