{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20","id":59403924,"html_url":"https://github.com/cisco/cisco-network-chef-cookbook/pull/20","diff_url":"https://github.com/cisco/cisco-network-chef-cookbook/pull/20.diff","patch_url":"https://github.com/cisco/cisco-network-chef-cookbook/pull/20.patch","issue_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/20","number":20,"state":"open","locked":false,"title":"Idempotency fix for interface","user":{"login":"robert-w-gries","id":7546625,"avatar_url":"https://avatars.githubusercontent.com/u/7546625?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-w-gries","html_url":"https://github.com/robert-w-gries","followers_url":"https://api.github.com/users/robert-w-gries/followers","following_url":"https://api.github.com/users/robert-w-gries/following{/other_user}","gists_url":"https://api.github.com/users/robert-w-gries/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-w-gries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-w-gries/subscriptions","organizations_url":"https://api.github.com/users/robert-w-gries/orgs","repos_url":"https://api.github.com/users/robert-w-gries/repos","events_url":"https://api.github.com/users/robert-w-gries/events{/privacy}","received_events_url":"https://api.github.com/users/robert-w-gries/received_events","type":"User","site_admin":false},"body":"`switchport trunk allowed vlan` property had idempotency issues\r\nwhen setting string with whitespace\r\n\r\n#### Recipe\r\n\r\n```ruby\r\ncisco_interface 'Ethernet1/3' do\r\n  switchport_mode 'trunk'\r\n  switchport_trunk_allowed_vlan '20, 30'\r\n  switchport_trunk_native_vlan 40\r\nend\r\n```\r\n\r\n#### Initial Setting of Property\r\n\r\n```bash\r\n  * cisco_interface[ethernet1/3] action create[2016-02-15T19:14:20+00:00] INFO: Processing cisco_interface[ethernet1/3] action create (rob_test::demo_install line 130)\r\n\r\n    - update switchport_mode disabled => trunk\r\n    - update switchport_trunk_allowed_vlan '1-4094' => '20,30'\r\n    - update switchport_trunk_native_vlan '1' => '40'\r\n```\r\n\r\n#### Idempotency\r\n\r\n```bash\r\n* cisco_interface[ethernet1/2] action create[2016-02-15T19:14:50+00:00] INFO: Processing cisco_interface[ethernet1/2] action create (rob_test::demo_install line 126)\r\n (up to date)\r\n```","created_at":"2016-02-15T19:20:23Z","updated_at":"2016-02-15T19:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20/commits","review_comments_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20/comments","review_comment_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/20/comments","statuses_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/statuses/66284f0cbf8396b760748b19d2d98bf7eccc9e69","head":{"label":"robert-w-gries:feature/interface-allowed-vlan-fix","ref":"feature/interface-allowed-vlan-fix","sha":"66284f0cbf8396b760748b19d2d98bf7eccc9e69","user":{"login":"robert-w-gries","id":7546625,"avatar_url":"https://avatars.githubusercontent.com/u/7546625?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-w-gries","html_url":"https://github.com/robert-w-gries","followers_url":"https://api.github.com/users/robert-w-gries/followers","following_url":"https://api.github.com/users/robert-w-gries/following{/other_user}","gists_url":"https://api.github.com/users/robert-w-gries/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-w-gries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-w-gries/subscriptions","organizations_url":"https://api.github.com/users/robert-w-gries/orgs","repos_url":"https://api.github.com/users/robert-w-gries/repos","events_url":"https://api.github.com/users/robert-w-gries/events{/privacy}","received_events_url":"https://api.github.com/users/robert-w-gries/received_events","type":"User","site_admin":false},"repo":{"id":46574620,"name":"cisco-network-chef-cookbook","full_name":"robert-w-gries/cisco-network-chef-cookbook","owner":{"login":"robert-w-gries","id":7546625,"avatar_url":"https://avatars.githubusercontent.com/u/7546625?v=3","gravatar_id":"","url":"https://api.github.com/users/robert-w-gries","html_url":"https://github.com/robert-w-gries","followers_url":"https://api.github.com/users/robert-w-gries/followers","following_url":"https://api.github.com/users/robert-w-gries/following{/other_user}","gists_url":"https://api.github.com/users/robert-w-gries/gists{/gist_id}","starred_url":"https://api.github.com/users/robert-w-gries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robert-w-gries/subscriptions","organizations_url":"https://api.github.com/users/robert-w-gries/orgs","repos_url":"https://api.github.com/users/robert-w-gries/repos","events_url":"https://api.github.com/users/robert-w-gries/events{/privacy}","received_events_url":"https://api.github.com/users/robert-w-gries/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robert-w-gries/cisco-network-chef-cookbook","description":"","fork":true,"url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook","forks_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/forks","keys_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/teams","hooks_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/hooks","issue_events_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/events","assignees_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/tags","blobs_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/languages","stargazers_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/stargazers","contributors_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/contributors","subscribers_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/subscribers","subscription_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/subscription","commits_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/merges","archive_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/downloads","issues_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/robert-w-gries/cisco-network-chef-cookbook/deployments","created_at":"2015-11-20T16:49:00Z","updated_at":"2016-02-12T11:19:06Z","pushed_at":"2016-02-15T19:06:12Z","git_url":"git://github.com/robert-w-gries/cisco-network-chef-cookbook.git","ssh_url":"git@github.com:robert-w-gries/cisco-network-chef-cookbook.git","clone_url":"https://github.com/robert-w-gries/cisco-network-chef-cookbook.git","svn_url":"https://github.com/robert-w-gries/cisco-network-chef-cookbook","homepage":null,"size":2072,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"cisco:release_1.1.0","ref":"release_1.1.0","sha":"63e0d46a1c63acab8530416ff092df846c5419c7","user":{"login":"cisco","id":1376999,"avatar_url":"https://avatars.githubusercontent.com/u/1376999?v=3","gravatar_id":"","url":"https://api.github.com/users/cisco","html_url":"https://github.com/cisco","followers_url":"https://api.github.com/users/cisco/followers","following_url":"https://api.github.com/users/cisco/following{/other_user}","gists_url":"https://api.github.com/users/cisco/gists{/gist_id}","starred_url":"https://api.github.com/users/cisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisco/subscriptions","organizations_url":"https://api.github.com/users/cisco/orgs","repos_url":"https://api.github.com/users/cisco/repos","events_url":"https://api.github.com/users/cisco/events{/privacy}","received_events_url":"https://api.github.com/users/cisco/received_events","type":"Organization","site_admin":false},"repo":{"id":39565168,"name":"cisco-network-chef-cookbook","full_name":"cisco/cisco-network-chef-cookbook","owner":{"login":"cisco","id":1376999,"avatar_url":"https://avatars.githubusercontent.com/u/1376999?v=3","gravatar_id":"","url":"https://api.github.com/users/cisco","html_url":"https://github.com/cisco","followers_url":"https://api.github.com/users/cisco/followers","following_url":"https://api.github.com/users/cisco/following{/other_user}","gists_url":"https://api.github.com/users/cisco/gists{/gist_id}","starred_url":"https://api.github.com/users/cisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisco/subscriptions","organizations_url":"https://api.github.com/users/cisco/orgs","repos_url":"https://api.github.com/users/cisco/repos","events_url":"https://api.github.com/users/cisco/events{/privacy}","received_events_url":"https://api.github.com/users/cisco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cisco/cisco-network-chef-cookbook","description":"","fork":false,"url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook","forks_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/forks","keys_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/teams","hooks_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/hooks","issue_events_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/events","assignees_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/tags","blobs_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/languages","stargazers_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/stargazers","contributors_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/contributors","subscribers_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/subscribers","subscription_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/subscription","commits_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/merges","archive_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/downloads","issues_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/deployments","created_at":"2015-07-23T12:07:15Z","updated_at":"2016-02-05T19:41:16Z","pushed_at":"2016-02-15T19:20:24Z","git_url":"git://github.com/cisco/cisco-network-chef-cookbook.git","ssh_url":"git@github.com:cisco/cisco-network-chef-cookbook.git","clone_url":"https://github.com/cisco/cisco-network-chef-cookbook.git","svn_url":"https://github.com/cisco/cisco-network-chef-cookbook","homepage":null,"size":2117,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":9,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20"},"html":{"href":"https://github.com/cisco/cisco-network-chef-cookbook/pull/20"},"issue":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/20"},"comments":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/cisco/cisco-network-chef-cookbook/statuses/66284f0cbf8396b760748b19d2d98bf7eccc9e69"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}