{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/1661","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/1661/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/1661/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/1661/events","html_url":"https://github.com/hashicorp/nomad/issues/1661","id":173836452,"number":1661,"title":"Updating service tags appends instead of replaces in consul","user":{"login":"schmichael","id":113362,"avatar_url":"https://avatars.githubusercontent.com/u/113362?v=3","gravatar_id":"","url":"https://api.github.com/users/schmichael","html_url":"https://github.com/schmichael","followers_url":"https://api.github.com/users/schmichael/followers","following_url":"https://api.github.com/users/schmichael/following{/other_user}","gists_url":"https://api.github.com/users/schmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/schmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmichael/subscriptions","organizations_url":"https://api.github.com/users/schmichael/orgs","repos_url":"https://api.github.com/users/schmichael/repos","events_url":"https://api.github.com/users/schmichael/events{/privacy}","received_events_url":"https://api.github.com/users/schmichael/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/nomad/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/nomad/labels/discovery","name":"discovery","color":"B722E4"}],"state":"closed","locked":false,"assignee":{"login":"schmichael","id":113362,"avatar_url":"https://avatars.githubusercontent.com/u/113362?v=3","gravatar_id":"","url":"https://api.github.com/users/schmichael","html_url":"https://github.com/schmichael","followers_url":"https://api.github.com/users/schmichael/followers","following_url":"https://api.github.com/users/schmichael/following{/other_user}","gists_url":"https://api.github.com/users/schmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/schmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmichael/subscriptions","organizations_url":"https://api.github.com/users/schmichael/orgs","repos_url":"https://api.github.com/users/schmichael/repos","events_url":"https://api.github.com/users/schmichael/events{/privacy}","received_events_url":"https://api.github.com/users/schmichael/received_events","type":"User","site_admin":false},"assignees":[{"login":"schmichael","id":113362,"avatar_url":"https://avatars.githubusercontent.com/u/113362?v=3","gravatar_id":"","url":"https://api.github.com/users/schmichael","html_url":"https://github.com/schmichael","followers_url":"https://api.github.com/users/schmichael/followers","following_url":"https://api.github.com/users/schmichael/following{/other_user}","gists_url":"https://api.github.com/users/schmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/schmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmichael/subscriptions","organizations_url":"https://api.github.com/users/schmichael/orgs","repos_url":"https://api.github.com/users/schmichael/repos","events_url":"https://api.github.com/users/schmichael/events{/privacy}","received_events_url":"https://api.github.com/users/schmichael/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-29T18:13:41Z","updated_at":"2016-09-01T16:51:33Z","closed_at":"2016-09-01T00:17:09Z","body":"When updating tags from `[\"foo\", \"bar\"]` to `[\"foo\", \"x\"]`, `x` will be appended and `bar` won't be removed in consul. So the result is `[\"foo\", \"bar\", \"x\"]` instead of `[\"foo\", \"x\"]`\r\n\r\n### Nomad version\r\n0.4 - master (152c11d657c1fec4cbc6857c4218a5fc8121340f)\r\n### Operating system and Environment details\r\n\r\n### Issue\r\nOriginal submisison:\r\n\r\n> Hi, I'm using Nomad 0.4 to run some jobs. Is it expected that when you update a service (Consul) tag, the old tag is not removed but instead appended to the service?\r\n\r\n### Reproduction steps\r\n\r\n1. Start consul + nomad\r\n2. run example.nomad\r\n3. Change `cache` tag to `cache2` tag\r\n4. run example.nomad\r\n5. Observe tags in consul include both `cache` and `cache2`"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/244141212","html_url":"https://github.com/hashicorp/nomad/issues/1661#issuecomment-244141212","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/1661","id":244141212,"user":{"login":"schmichael","id":113362,"avatar_url":"https://avatars.githubusercontent.com/u/113362?v=3","gravatar_id":"","url":"https://api.github.com/users/schmichael","html_url":"https://github.com/schmichael","followers_url":"https://api.github.com/users/schmichael/followers","following_url":"https://api.github.com/users/schmichael/following{/other_user}","gists_url":"https://api.github.com/users/schmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/schmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmichael/subscriptions","organizations_url":"https://api.github.com/users/schmichael/orgs","repos_url":"https://api.github.com/users/schmichael/repos","events_url":"https://api.github.com/users/schmichael/events{/privacy}","received_events_url":"https://api.github.com/users/schmichael/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T16:51:33Z","updated_at":"2016-09-01T16:51:33Z","body":"@kyhavlov 0.5 should be out in a few weeks. HashiConf is next week and more news about 0.5 will be coming out then."}}
{"actor":{"display_login":"schmichael"}}