{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/1","labels_url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/1/comments","events_url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/1/events","html_url":"https://github.com/PowerShell/xPowerShellExecutionPolicy/issues/1","id":104292111,"number":1,"title":"The return value for Test-TargetResource is reversed","user":{"login":"bk147","id":8299744,"avatar_url":"https://avatars.githubusercontent.com/u/8299744?v=3","gravatar_id":"","url":"https://api.github.com/users/bk147","html_url":"https://github.com/bk147","followers_url":"https://api.github.com/users/bk147/followers","following_url":"https://api.github.com/users/bk147/following{/other_user}","gists_url":"https://api.github.com/users/bk147/gists{/gist_id}","starred_url":"https://api.github.com/users/bk147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bk147/subscriptions","organizations_url":"https://api.github.com/users/bk147/orgs","repos_url":"https://api.github.com/users/bk147/repos","events_url":"https://api.github.com/users/bk147/events{/privacy}","received_events_url":"https://api.github.com/users/bk147/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T15:29:00Z","updated_at":"2015-09-01T18:32:33Z","closed_at":"2015-09-01T18:32:33Z","body":"In the Test-TargetResource the return value is reversed ($true for $false).\r\nOne way to correct this is to replace:\r\n\r\nIf($(Get-ExecutionPolicy) -eq $ExecutionPolicy)\r\n\r\nwith\r\n\r\nIf($(Get-ExecutionPolicy) -ne $ExecutionPolicy)"},"comment":{"url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/comments/136821552","html_url":"https://github.com/PowerShell/xPowerShellExecutionPolicy/issues/1#issuecomment-136821552","issue_url":"https://api.github.com/repos/PowerShell/xPowerShellExecutionPolicy/issues/1","id":136821552,"user":{"login":"KarolKaczmarek","id":6466574,"avatar_url":"https://avatars.githubusercontent.com/u/6466574?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolKaczmarek","html_url":"https://github.com/KarolKaczmarek","followers_url":"https://api.github.com/users/KarolKaczmarek/followers","following_url":"https://api.github.com/users/KarolKaczmarek/following{/other_user}","gists_url":"https://api.github.com/users/KarolKaczmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolKaczmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolKaczmarek/subscriptions","organizations_url":"https://api.github.com/users/KarolKaczmarek/orgs","repos_url":"https://api.github.com/users/KarolKaczmarek/repos","events_url":"https://api.github.com/users/KarolKaczmarek/events{/privacy}","received_events_url":"https://api.github.com/users/KarolKaczmarek/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T18:32:33Z","updated_at":"2015-09-01T18:32:33Z","body":"Hi @bk147 \r\nChecked it out and looks good to me:\r\n```\r\n If($(Get-ExecutionPolicy) -eq $ExecutionPolicy)\r\n    {\r\n        return $true\r\n    }\r\n    else\r\n    {\r\n        return $false\r\n    }\r\n```\r\nIf current execution policy (Get-ExecutionPolicy) equals what we expect it to be ($ExecutionPolicy), then we return $true (resource is in desired state). Otherwise - we return $false.\r\n\r\nSeems fine, so closing this issue, but feel free to reopen if I'm not understanding your request correctly.\r\n\r\n"}}