mirror of https://github.com/MISP/misp-dashboard
chg: [diagnostic] Provide suggestion to fix py-redis version
parent
194b28ea93
commit
a50bab4e77
|
@ -111,7 +111,8 @@ def check_virtual_environment_and_packages(spinner):
|
||||||
return (False, 'This diagnostic tool should be started inside a virtual environment.')
|
return (False, 'This diagnostic tool should be started inside a virtual environment.')
|
||||||
else:
|
else:
|
||||||
if redis.__version__.startswith('2'):
|
if redis.__version__.startswith('2'):
|
||||||
return (False, f'Redis python client have version {redis.__version__}. Version 3.x required.')
|
return (False, f'''Redis python client have version {redis.__version__}. Version 3.x required.
|
||||||
|
\t➥ [inside virtualenv] pip3 install -U redis''')
|
||||||
else:
|
else:
|
||||||
return (True, '')
|
return (True, '')
|
||||||
|
|
||||||
|
@ -138,6 +139,7 @@ def check_configuration(spinner):
|
||||||
else:
|
else:
|
||||||
return (False, f'''Configuration incomplete.
|
return (False, f'''Configuration incomplete.
|
||||||
\tUpdate your configuration file `config.cfg`.\n\t➥ Faulty fields: {", ".join(faulties)}''')
|
\tUpdate your configuration file `config.cfg`.\n\t➥ Faulty fields: {", ".join(faulties)}''')
|
||||||
|
# TODO: propose auto fix
|
||||||
|
|
||||||
|
|
||||||
@add_spinner(name='dot')
|
@add_spinner(name='dot')
|
||||||
|
|
Loading…
Reference in New Issue