ThePrez / ServiceCommander-IBMi

Service Commander for IBM i
Apache License 2.0
40 stars 12 forks source link

[BUG] nginx configuration file without a value gets clobbered #182

Closed ThePrez closed 1 year ago

ThePrez commented 2 years ago

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

Expected behavior

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

stub_status:

to

stub_status stub_status:
ThePrez commented 1 year ago

Fixed by #185