##// END OF EJS Templates
setup_rhodecode: fix --force-no - force_ask is tri-state...
Mads Kiilerich -
r3671:658ccf97 beta
parent child Browse files
Show More
@@ -67,12 +67,11 b' class DbManage(object):'
67 67 self.db_exists = False
68 68 self.cli_args = cli_args
69 69 self.init_db()
70
71 force_ask = self.cli_args.get('force_ask')
72 if force_ask is not None:
70 73 global ask_ok
71
72 if self.cli_args.get('force_ask'):
73 ask_ok = lambda *args, **kwargs: True
74 elif not self.cli_args.get('force_ask'):
75 ask_ok = lambda *args, **kwargs: False
74 ask_ok = lambda *args, **kwargs: force_ask
76 75
77 76 def init_db(self):
78 77 engine = create_engine(self.dburi, echo=self.log_sql)
General Comments 0
You need to be logged in to leave comments. Login now