{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3250","labels_url":"https://api.github.com/repos/chef/chef/issues/3250/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3250/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3250/events","html_url":"https://github.com/chef/chef/issues/3250","id":69799265,"number":3250,"title":"ifconfig resource does not respect 'target' option properly","user":{"login":"rafaltrojniak","id":1113112,"avatar_url":"https://avatars.githubusercontent.com/u/1113112?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaltrojniak","html_url":"https://github.com/rafaltrojniak","followers_url":"https://api.github.com/users/rafaltrojniak/followers","following_url":"https://api.github.com/users/rafaltrojniak/following{/other_user}","gists_url":"https://api.github.com/users/rafaltrojniak/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaltrojniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaltrojniak/subscriptions","organizations_url":"https://api.github.com/users/rafaltrojniak/orgs","repos_url":"https://api.github.com/users/rafaltrojniak/repos","events_url":"https://api.github.com/users/rafaltrojniak/events{/privacy}","received_events_url":"https://api.github.com/users/rafaltrojniak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"juliandunn","id":841412,"avatar_url":"https://avatars.githubusercontent.com/u/841412?v=3","gravatar_id":"","url":"https://api.github.com/users/juliandunn","html_url":"https://github.com/juliandunn","followers_url":"https://api.github.com/users/juliandunn/followers","following_url":"https://api.github.com/users/juliandunn/following{/other_user}","gists_url":"https://api.github.com/users/juliandunn/gists{/gist_id}","starred_url":"https://api.github.com/users/juliandunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliandunn/subscriptions","organizations_url":"https://api.github.com/users/juliandunn/orgs","repos_url":"https://api.github.com/users/juliandunn/repos","events_url":"https://api.github.com/users/juliandunn/events{/privacy}","received_events_url":"https://api.github.com/users/juliandunn/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-21T09:52:58Z","updated_at":"2015-05-04T16:34:15Z","closed_at":null,"body":"It looks like 'target' properly is not respected in resource 'interface'.\r\n\r\nWhile documentatoin says :\r\n> target \tThe IP address that will be assigned to the network interface. Default value: the name of the resource block. (See “Syntax” section above for more information.)\r\n\r\nThe code and behaviour looks like the variables are used separately. \r\n\r\nfor example resource like :\r\n````ruby\r\n  ifconfig 'test-name' do\r\n    device 'lo:1'\r\n    target '1.2.3.4'\r\n    mask '255.255.255.255'\r\n    action [:add, :enable]\r\n  end\r\n````\r\nwill throw error :\r\n````\r\n           ================================================================================\r\n           Error executing action `add` on resource 'ifconfig[test-name]'\r\n           ================================================================================\r\n           \r\n           Chef::Exceptions::Exec\r\n           ----------------------\r\n           ifconfig lo:1 test-name netmask 255.255.255.255 returned 1, expected 0\r\n           \r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/XXX/recipes/default.rb\r\n           \r\n           147:   ifconfig 'test-name' do\r\n           148:     device 'lo:1'\r\n           149:     target '1.2.3.4'\r\n           150:     mask '255.255.255.255'\r\n           151:     action [:add, :enable]\r\n           152:   end\r\n           153: \r\n````"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/98773898","html_url":"https://github.com/chef/chef/issues/3250#issuecomment-98773898","issue_url":"https://api.github.com/repos/chef/chef/issues/3250","id":98773898,"user":{"login":"rafaltrojniak","id":1113112,"avatar_url":"https://avatars.githubusercontent.com/u/1113112?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaltrojniak","html_url":"https://github.com/rafaltrojniak","followers_url":"https://api.github.com/users/rafaltrojniak/followers","following_url":"https://api.github.com/users/rafaltrojniak/following{/other_user}","gists_url":"https://api.github.com/users/rafaltrojniak/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaltrojniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaltrojniak/subscriptions","organizations_url":"https://api.github.com/users/rafaltrojniak/orgs","repos_url":"https://api.github.com/users/rafaltrojniak/repos","events_url":"https://api.github.com/users/rafaltrojniak/events{/privacy}","received_events_url":"https://api.github.com/users/rafaltrojniak/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T16:34:14Z","updated_at":"2015-05-04T16:34:14Z","body":"@juliandunn  Yes, the provider does quite weird things and needs to be cleaned up. But fixing that particular problem with target is enough for me now.\r\nMaybe if I will someday sign CLA, that would be my first Pull request :P"}}