{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/170","repository_url":"https://api.github.com/repos/StackStorm/ansible-st2","labels_url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/170/comments","events_url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/170/events","html_url":"https://github.com/StackStorm/ansible-st2/issues/170","id":255798852,"number":170,"title":"st2chatops smoke tests fail when HUBOT_LOG_LEVEL=info","user":{"login":"cognifloyd","id":1558590,"avatar_url":"https://avatars2.githubusercontent.com/u/1558590?v=4","gravatar_id":"","url":"https://api.github.com/users/cognifloyd","html_url":"https://github.com/cognifloyd","followers_url":"https://api.github.com/users/cognifloyd/followers","following_url":"https://api.github.com/users/cognifloyd/following{/other_user}","gists_url":"https://api.github.com/users/cognifloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/cognifloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognifloyd/subscriptions","organizations_url":"https://api.github.com/users/cognifloyd/orgs","repos_url":"https://api.github.com/users/cognifloyd/repos","events_url":"https://api.github.com/users/cognifloyd/events{/privacy}","received_events_url":"https://api.github.com/users/cognifloyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-07T02:48:53Z","updated_at":"2017-09-07T11:46:36Z","closed_at":null,"author_association":"NONE","body":"I have this st2chatops config:\r\n\r\n```\r\nst2chatops_hubot_adapter: slack\r\nst2chatops_config:\r\n  HUBOT_SLACK_TOKEN: \"{{ theatro_vault_slack_bot_token }}\"\r\n  HUBOT_LOG_LEVEL: info\r\n```\r\n\r\nThis forces the st2chatops smoketest to fail despite https://github.com/StackStorm/ansible-st2/blob/136a41ee82f9f2bf187a28b9336552b5918f238d/roles/st2smoketests/tasks/st2chatops.yml#L4-L8\r\n\r\nThis is because `bin/hubot` overwrites any variables that are already in the environment:\r\n\r\n```\r\n. $HERE/st2chatops.env\r\n```\r\n\r\nhttps://github.com/StackStorm/st2chatops/blob/9066a1fed83615fa13b19985c546e9621b612cc0/bin/hubot#L15"},"comment":{"url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/comments/327775870","html_url":"https://github.com/StackStorm/ansible-st2/issues/170#issuecomment-327775870","issue_url":"https://api.github.com/repos/StackStorm/ansible-st2/issues/170","id":327775870,"user":{"login":"armab","id":1533818,"avatar_url":"https://avatars2.githubusercontent.com/u/1533818?v=4","gravatar_id":"","url":"https://api.github.com/users/armab","html_url":"https://github.com/armab","followers_url":"https://api.github.com/users/armab/followers","following_url":"https://api.github.com/users/armab/following{/other_user}","gists_url":"https://api.github.com/users/armab/gists{/gist_id}","starred_url":"https://api.github.com/users/armab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armab/subscriptions","organizations_url":"https://api.github.com/users/armab/orgs","repos_url":"https://api.github.com/users/armab/repos","events_url":"https://api.github.com/users/armab/events{/privacy}","received_events_url":"https://api.github.com/users/armab/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T11:46:36Z","updated_at":"2017-09-07T11:46:36Z","author_association":"MEMBER","body":"And the fix could be is to handle ENV var this way https://github.com/StackStorm/st2chatops/blob/9066a1fed83615fa13b19985c546e9621b612cc0/st2chatops.env#L1 in `st2chatops.env`"}}
{"actor":{"display_login":"armab"}}