Create an application and service definition that runs in cluster mode
Modify the cluster.conf file with a non-value directive
start the service
Expected behavior
Service starts without issue
Additional context
When sc rewrites the cluster.conf file (to ensure the proper upstream ports are in place) it doesn't properly handle the value-less directive. Instead, it will rewrite the line
Describe the bug When SC rewrites the nginx configuration file in cluster mode (
cluster.conf
), it does not handle directives that don't take a value.This was discovered when testing the nginx stub status module
To Reproduce
cluster.conf
file with a non-value directiveExpected behavior
Additional context When
sc
rewrites thecluster.conf
file (to ensure the proper upstream ports are in place) it doesn't properly handle the value-less directive. Instead, it will rewrite the lineto