{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20625","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20625/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20625/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20625/events","html_url":"https://github.com/saltstack/salt/issues/20625","id":57457179,"number":20625,"title":"nginx.configtest module returns a misleading result if the configuration is erroneous","user":{"login":"zizkebab","id":3955638,"avatar_url":"https://avatars.githubusercontent.com/u/3955638?v=3","gravatar_id":"","url":"https://api.github.com/users/zizkebab","html_url":"https://github.com/zizkebab","followers_url":"https://api.github.com/users/zizkebab/followers","following_url":"https://api.github.com/users/zizkebab/following{/other_user}","gists_url":"https://api.github.com/users/zizkebab/gists{/gist_id}","starred_url":"https://api.github.com/users/zizkebab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zizkebab/subscriptions","organizations_url":"https://api.github.com/users/zizkebab/orgs","repos_url":"https://api.github.com/users/zizkebab/repos","events_url":"https://api.github.com/users/zizkebab/events{/privacy}","received_events_url":"https://api.github.com/users/zizkebab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/48","html_url":"https://github.com/saltstack/salt/milestones/Under%20Review","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/48/labels","id":856250,"number":48,"title":"Under Review","description":"","creator":{"login":"ssgward","id":8439595,"avatar_url":"https://avatars.githubusercontent.com/u/8439595?v=3","gravatar_id":"","url":"https://api.github.com/users/ssgward","html_url":"https://github.com/ssgward","followers_url":"https://api.github.com/users/ssgward/followers","following_url":"https://api.github.com/users/ssgward/following{/other_user}","gists_url":"https://api.github.com/users/ssgward/gists{/gist_id}","starred_url":"https://api.github.com/users/ssgward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssgward/subscriptions","organizations_url":"https://api.github.com/users/ssgward/orgs","repos_url":"https://api.github.com/users/ssgward/repos","events_url":"https://api.github.com/users/ssgward/events{/privacy}","received_events_url":"https://api.github.com/users/ssgward/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":17,"state":"open","created_at":"2014-11-06T17:18:17Z","updated_at":"2015-02-26T05:36:18Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-12T13:01:19Z","updated_at":"2015-03-01T23:54:32Z","closed_at":null,"body":"When I run nginx -t for an erroneous configuration, I get the following output:\r\n```\r\nnginx: the configuration file /etc/nginx/nginx.conf syntax is ok\r\nnginx: [emerg] zero size shared memory zone \"zone=perupstreamserver\"\r\nnginx: configuration file /etc/nginx/nginx.conf test failed\r\n```\r\n\r\nHowever, the nginx.configtest module returns the first line:\r\n```\r\n]$ salt-call nginx.configtest\r\n[INFO    ] Executing command '/usr/sbin/nginx -t' in directory '/root'\r\n[ERROR   ] Command '/usr/sbin/nginx -t' failed with return code: 1\r\n[ERROR   ] output: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok\r\nnginx: [emerg] zero size shared memory zone \"zone=perupstreamserver\"\r\nnginx: configuration file /etc/nginx/nginx.conf test failed\r\nlocal:\r\n    the configuration file /etc/nginx/nginx.conf syntax is ok\r\n```\r\nThis is a bit misleading."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/76639360","html_url":"https://github.com/saltstack/salt/issues/20625#issuecomment-76639360","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20625","id":76639360,"user":{"login":"dmyerscough","id":1395617,"avatar_url":"https://avatars.githubusercontent.com/u/1395617?v=3","gravatar_id":"","url":"https://api.github.com/users/dmyerscough","html_url":"https://github.com/dmyerscough","followers_url":"https://api.github.com/users/dmyerscough/followers","following_url":"https://api.github.com/users/dmyerscough/following{/other_user}","gists_url":"https://api.github.com/users/dmyerscough/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyerscough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyerscough/subscriptions","organizations_url":"https://api.github.com/users/dmyerscough/orgs","repos_url":"https://api.github.com/users/dmyerscough/repos","events_url":"https://api.github.com/users/dmyerscough/events{/privacy}","received_events_url":"https://api.github.com/users/dmyerscough/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T23:54:32Z","updated_at":"2015-03-01T23:54:32Z","body":"@zizkebab Thank you, I will look into getting a patch for this shortly."}}