3bf60b3db2
#### Why I did it To avoid the following error ``` Traceback (most recent call last): File "/usr/local/bin/flush_unused_database", line 10, in <module> if 'PONG' in output: TypeError: a bytes-like object is required, not 'str' ``` `communicate` method returns the strings if streams were opened in text mode; otherwise, bytes. In our case text arg in Popen is not true and that means that `communicate` return the bytes #### How I did it Set `text=True` to get strings instead of bytes #### How to verify it run `/usr/local/bin/flush_unused_database` inside database container |
||
---|---|---|
.. | ||
base_image_files | ||
critical_processes | ||
database_config.json.j2 | ||
database_global.json.j2 | ||
docker-database-init.sh | ||
Dockerfile.j2 | ||
flush_unused_database | ||
supervisord.conf.j2 |