{"id":6872,"date":"2022-02-04T11:14:37","date_gmt":"2022-02-04T09:14:37","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=6872"},"modified":"2022-02-04T11:14:37","modified_gmt":"2022-02-04T09:14:37","slug":"auth-login-exits-with-status-0-even-for-a-non-working-url","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2022\/02\/04\/auth-login-exits-with-status-0-even-for-a-non-working-url\/","title":{"rendered":"auth login exits with status 0 even for a non-working URL"},"content":{"rendered":"<h2>Steps to reproduce<\/h2>\n<p dir=\"auto\"><strong>Note<\/strong>\u00a0the literal use of example.com here; don&#8217;t replace it with an actual, working MM instance URL.<\/p>\n<div class=\"snippet-clipboard-content position-relative overflow-auto\">\n<pre><code># \/usr\/bin\/sudo -u mattermost \/usr\/local\/bin\/mmctl  auth login http:\/\/example.com --name example --access-token 123456890abcdefghijklmnopq`\r\n# echo $?\r\n<\/code><\/pre>\n<div class=\"zeroclipboard-container position-absolute right-0 top-0\"><\/div>\n<\/div>\n<h2>What I expect happen<\/h2>\n<p dir=\"auto\">For a non-zero exit status to be printed.<\/p>\n<h2>What happens instead<\/h2>\n<p dir=\"auto\">The exit status is 0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Doing `mmctl  auth login` to http:\/\/example.com results in exit status 0.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14049],"class_list":["post-6872","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mattermost","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6872"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6872\/revisions"}],"predecessor-version":[{"id":6874,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6872\/revisions\/6874"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}