Revision 14b9a185 kamaki/cli/__init__.py

b/kamaki/cli/__init__.py
205 205

  
206 206
    guess = _cnf.value.guess_version()
207 207
    if guess < 3.0:
208
        print('PLEASE DO NOT PANIC: EXIT THE BUILDING QUIETLY')
209
    raise CLIError('STOP HERE, PLEASE %s' % guess)
208
        print('Missing an updated configuration file')
209
        print('Updating configuration file without missing any information')
210
        #_cnf.value.rescue_old_file()
211
        print('... ... ... DONE')
212
        raise CLIError(
213
            'Invalid configuration file %s' % _cnf.value.path,
214
            importance=2, details=[
215
                'Kamaki is now using a single authentication URL and token',
216
                'To check if the single authentication URL is set:',
217
                '  /config get remote.default.token',
218
                'To check if the single authentication token is set:',
219
                '  /config get remote.default.token',
220
                'To set the default authentication URL and token:'
221
                '  /config set remote.default.url <URL>',
222
                '  /config set remote.default.token <token>'])
223
    raise CLIError(
224
        'Your file is OK, but kamaki is under contruction, sorry',
225
        importance=3, details=['DO NOT PANIC, EXIT THE BUILDING QUIETLY'])
210 226

  
211 227
    global _colors
212 228
    _colors = _cnf.get('global', 'colors')

Also available in: Unified diff