Avoid initializing free disk space in redis for all hue shell commands. The initialize_free_disk_space_in_redis() method was invoked for all hue shell commands and breaks the hue's service-discovery pod since there is no redis-server running in this pod.
Moving it to rungunicornserver.py -> start_server() method, since initialize_free_disk_space_in_redis has to be invoked when hue server starts up.
How was this patch tested?
Local testing on mac. Building docker images for testing.
Avoid initializing free disk space in redis for all hue shell commands. The
initialize_free_disk_space_in_redis()
method was invoked for all hue shell commands and breaks the hue's service-discovery pod since there is no redis-server running in this pod. Moving it to rungunicornserver.py -> start_server() method, sinceinitialize_free_disk_space_in_redis
has to be invoked when hue server starts up.How was this patch tested?
Please review Hue Contributing Guide before opening a pull request.