{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/comments/55850998","id":55850998,"diff_hunk":"@@ -228,48 +228,54 @@ function Test-TargetResource\n             # If switch should be present, check the switch type\n             if($Ensure -eq 'Present')\n             {\n-                # If the BandwidthReservsationMode is correct, or if $switch.BandwidthReservationMode is $null which means it isn't supported on the OS\n-                Write-Verbose -Message \"Checking if Switch $Name has correct BandwidthReservationMode ...\"\n-                if($switch.BandwidthReservationMode -eq $BandwidthReservationMode -or $switch.BandwidthReservationMode -eq $null)\n+                ## Only check the BandwidthReservationMode if specified\n+                if($PSBoundParameters.ContainsKey('BandwidthReservationMode'))","path":"DSCResources/MSFT_xVMSwitch/MSFT_xVMSwitch.psm1","position":8,"original_position":8,"commit_id":"8c7b0c682efaae1fe66b3c4907008307db53e4e5","original_commit_id":"8c7b0c682efaae1fe66b3c4907008307db53e4e5","user":{"login":"PrahlM93","id":11711106,"avatar_url":"https://avatars.githubusercontent.com/u/11711106?v=3","gravatar_id":"","url":"https://api.github.com/users/PrahlM93","html_url":"https://github.com/PrahlM93","followers_url":"https://api.github.com/users/PrahlM93/followers","following_url":"https://api.github.com/users/PrahlM93/following{/other_user}","gists_url":"https://api.github.com/users/PrahlM93/gists{/gist_id}","starred_url":"https://api.github.com/users/PrahlM93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrahlM93/subscriptions","organizations_url":"https://api.github.com/users/PrahlM93/orgs","repos_url":"https://api.github.com/users/PrahlM93/repos","events_url":"https://api.github.com/users/PrahlM93/events{/privacy}","received_events_url":"https://api.github.com/users/PrahlM93/received_events","type":"User","site_admin":false},"body":"Won't this always return True though since the BandwidthReservationMode parameter defaults to NA? I think you need to remove the default assignment of NA.","created_at":"2016-03-11T16:18:25Z","updated_at":"2016-03-11T16:18:25Z","html_url":"https://github.com/PowerShell/xHyper-V/pull/49#discussion_r55850998","pull_request_url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/comments/55850998"},"html":{"href":"https://github.com/PowerShell/xHyper-V/pull/49#discussion_r55850998"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49","id":60051233,"html_url":"https://github.com/PowerShell/xHyper-V/pull/49","diff_url":"https://github.com/PowerShell/xHyper-V/pull/49.diff","patch_url":"https://github.com/PowerShell/xHyper-V/pull/49.patch","issue_url":"https://api.github.com/repos/PowerShell/xHyper-V/issues/49","number":49,"state":"open","locked":false,"title":"Fixes BandwidthReservationMode bug","user":{"login":"iainbrighton","id":7023258,"avatar_url":"https://avatars.githubusercontent.com/u/7023258?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbrighton","html_url":"https://github.com/iainbrighton","followers_url":"https://api.github.com/users/iainbrighton/followers","following_url":"https://api.github.com/users/iainbrighton/following{/other_user}","gists_url":"https://api.github.com/users/iainbrighton/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbrighton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbrighton/subscriptions","organizations_url":"https://api.github.com/users/iainbrighton/orgs","repos_url":"https://api.github.com/users/iainbrighton/repos","events_url":"https://api.github.com/users/iainbrighton/events{/privacy}","received_events_url":"https://api.github.com/users/iainbrighton/received_events","type":"User","site_admin":false},"body":"* Fixes #48\r\n* Adds test to avoid regression\r\n* Updates readme","created_at":"2016-02-20T15:35:46Z","updated_at":"2016-03-11T16:18:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24d6b934664a9b1f626eec51db15e939fd9a2ab6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49/commits","review_comments_url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49/comments","review_comment_url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/xHyper-V/issues/49/comments","statuses_url":"https://api.github.com/repos/PowerShell/xHyper-V/statuses/8c7b0c682efaae1fe66b3c4907008307db53e4e5","head":{"label":"iainbrighton:Issue48","ref":"Issue48","sha":"8c7b0c682efaae1fe66b3c4907008307db53e4e5","user":{"login":"iainbrighton","id":7023258,"avatar_url":"https://avatars.githubusercontent.com/u/7023258?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbrighton","html_url":"https://github.com/iainbrighton","followers_url":"https://api.github.com/users/iainbrighton/followers","following_url":"https://api.github.com/users/iainbrighton/following{/other_user}","gists_url":"https://api.github.com/users/iainbrighton/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbrighton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbrighton/subscriptions","organizations_url":"https://api.github.com/users/iainbrighton/orgs","repos_url":"https://api.github.com/users/iainbrighton/repos","events_url":"https://api.github.com/users/iainbrighton/events{/privacy}","received_events_url":"https://api.github.com/users/iainbrighton/received_events","type":"User","site_admin":false},"repo":{"id":37331788,"name":"xHyper-V","full_name":"iainbrighton/xHyper-V","owner":{"login":"iainbrighton","id":7023258,"avatar_url":"https://avatars.githubusercontent.com/u/7023258?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbrighton","html_url":"https://github.com/iainbrighton","followers_url":"https://api.github.com/users/iainbrighton/followers","following_url":"https://api.github.com/users/iainbrighton/following{/other_user}","gists_url":"https://api.github.com/users/iainbrighton/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbrighton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbrighton/subscriptions","organizations_url":"https://api.github.com/users/iainbrighton/orgs","repos_url":"https://api.github.com/users/iainbrighton/repos","events_url":"https://api.github.com/users/iainbrighton/events{/privacy}","received_events_url":"https://api.github.com/users/iainbrighton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iainbrighton/xHyper-V","description":null,"fork":true,"url":"https://api.github.com/repos/iainbrighton/xHyper-V","forks_url":"https://api.github.com/repos/iainbrighton/xHyper-V/forks","keys_url":"https://api.github.com/repos/iainbrighton/xHyper-V/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iainbrighton/xHyper-V/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iainbrighton/xHyper-V/teams","hooks_url":"https://api.github.com/repos/iainbrighton/xHyper-V/hooks","issue_events_url":"https://api.github.com/repos/iainbrighton/xHyper-V/issues/events{/number}","events_url":"https://api.github.com/repos/iainbrighton/xHyper-V/events","assignees_url":"https://api.github.com/repos/iainbrighton/xHyper-V/assignees{/user}","branches_url":"https://api.github.com/repos/iainbrighton/xHyper-V/branches{/branch}","tags_url":"https://api.github.com/repos/iainbrighton/xHyper-V/tags","blobs_url":"https://api.github.com/repos/iainbrighton/xHyper-V/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iainbrighton/xHyper-V/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iainbrighton/xHyper-V/git/refs{/sha}","trees_url":"https://api.github.com/repos/iainbrighton/xHyper-V/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iainbrighton/xHyper-V/statuses/{sha}","languages_url":"https://api.github.com/repos/iainbrighton/xHyper-V/languages","stargazers_url":"https://api.github.com/repos/iainbrighton/xHyper-V/stargazers","contributors_url":"https://api.github.com/repos/iainbrighton/xHyper-V/contributors","subscribers_url":"https://api.github.com/repos/iainbrighton/xHyper-V/subscribers","subscription_url":"https://api.github.com/repos/iainbrighton/xHyper-V/subscription","commits_url":"https://api.github.com/repos/iainbrighton/xHyper-V/commits{/sha}","git_commits_url":"https://api.github.com/repos/iainbrighton/xHyper-V/git/commits{/sha}","comments_url":"https://api.github.com/repos/iainbrighton/xHyper-V/comments{/number}","issue_comment_url":"https://api.github.com/repos/iainbrighton/xHyper-V/issues/comments{/number}","contents_url":"https://api.github.com/repos/iainbrighton/xHyper-V/contents/{+path}","compare_url":"https://api.github.com/repos/iainbrighton/xHyper-V/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iainbrighton/xHyper-V/merges","archive_url":"https://api.github.com/repos/iainbrighton/xHyper-V/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iainbrighton/xHyper-V/downloads","issues_url":"https://api.github.com/repos/iainbrighton/xHyper-V/issues{/number}","pulls_url":"https://api.github.com/repos/iainbrighton/xHyper-V/pulls{/number}","milestones_url":"https://api.github.com/repos/iainbrighton/xHyper-V/milestones{/number}","notifications_url":"https://api.github.com/repos/iainbrighton/xHyper-V/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iainbrighton/xHyper-V/labels{/name}","releases_url":"https://api.github.com/repos/iainbrighton/xHyper-V/releases{/id}","deployments_url":"https://api.github.com/repos/iainbrighton/xHyper-V/deployments","created_at":"2015-06-12T16:13:29Z","updated_at":"2016-01-27T20:06:08Z","pushed_at":"2016-02-20T15:34:03Z","git_url":"git://github.com/iainbrighton/xHyper-V.git","ssh_url":"git@github.com:iainbrighton/xHyper-V.git","clone_url":"https://github.com/iainbrighton/xHyper-V.git","svn_url":"https://github.com/iainbrighton/xHyper-V","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"PowerShell:dev","ref":"dev","sha":"a57e3ac88410a4186c747a5ec6fdac7fc9d2b1c4","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":34022236,"name":"xHyper-V","full_name":"PowerShell/xHyper-V","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/xHyper-V","description":null,"fork":false,"url":"https://api.github.com/repos/PowerShell/xHyper-V","forks_url":"https://api.github.com/repos/PowerShell/xHyper-V/forks","keys_url":"https://api.github.com/repos/PowerShell/xHyper-V/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/xHyper-V/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/xHyper-V/teams","hooks_url":"https://api.github.com/repos/PowerShell/xHyper-V/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/xHyper-V/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/xHyper-V/events","assignees_url":"https://api.github.com/repos/PowerShell/xHyper-V/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/xHyper-V/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/xHyper-V/tags","blobs_url":"https://api.github.com/repos/PowerShell/xHyper-V/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/xHyper-V/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/xHyper-V/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/xHyper-V/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/xHyper-V/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/xHyper-V/languages","stargazers_url":"https://api.github.com/repos/PowerShell/xHyper-V/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/xHyper-V/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/xHyper-V/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/xHyper-V/subscription","commits_url":"https://api.github.com/repos/PowerShell/xHyper-V/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/xHyper-V/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/xHyper-V/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/xHyper-V/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/xHyper-V/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/xHyper-V/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/xHyper-V/merges","archive_url":"https://api.github.com/repos/PowerShell/xHyper-V/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/xHyper-V/downloads","issues_url":"https://api.github.com/repos/PowerShell/xHyper-V/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/xHyper-V/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/xHyper-V/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/xHyper-V/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/xHyper-V/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/xHyper-V/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/xHyper-V/deployments","created_at":"2015-04-15T22:43:01Z","updated_at":"2016-02-22T16:55:56Z","pushed_at":"2016-02-26T08:20:03Z","git_url":"git://github.com/PowerShell/xHyper-V.git","ssh_url":"git@github.com:PowerShell/xHyper-V.git","clone_url":"https://github.com/PowerShell/xHyper-V.git","svn_url":"https://github.com/PowerShell/xHyper-V","homepage":null,"size":160,"stargazers_count":8,"watchers_count":8,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":10,"forks":23,"open_issues":10,"watchers":8,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49"},"html":{"href":"https://github.com/PowerShell/xHyper-V/pull/49"},"issue":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/issues/49"},"comments":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/xHyper-V/statuses/8c7b0c682efaae1fe66b3c4907008307db53e4e5"}}}}