gokc icon indicating copy to clipboard operation
gokc copied to clipboard

check fails on script_user

Open ghost opened this issue 4 years ago • 2 comments

script_user in global_defs block in config file fails to pass the test:

keepalived.conf:23:4: syntax error: unexpected STRING, expecting RB

ghost avatar Jul 24 '19 14:07 ghost

Would you show me an example of your failure case?

yuuki avatar Jul 25 '19 08:07 yuuki

/go_projects/bin/gokc -f /root/go_projects/bin/keepalived.conf /go_projects/bin/keepalived.conf:11:4: syntax error: unexpected STRING, expecting RB

contents of global_defs block here:

global_defs { notification_email { ssay@#####.com #####@#####.com #####@#####.com } notification_email_from [email protected] smtp_server 192.168.110.164 smtp_connect_timeout 30 router_id c-haproxy001lv script_user root enable_script_security } Line 11 is the script_user parameter. When I comment out this line, the check passes.

We ARE using the latest version of keepalived. I believe the script_user parameter was added not too long ago. Either way, I was able to add the parameter and compile a working gokc binary so I'm okay for now with my test cases. I'm somehow not able to build from source with my changes present, so it's only working by compiling on my personal. Sorry, new to this thing.

ghost avatar Jul 25 '19 12:07 ghost