{"action":"closed","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/33","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/33/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/33/events","html_url":"https://github.com/chocolatey/chocolatey-cookbook/issues/33","id":56023306,"number":33,"title":"Action :upgrade failing to install a package when package is already installed","user":{"login":"stevenelder","id":1333285,"avatar_url":"https://avatars.githubusercontent.com/u/1333285?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenelder","html_url":"https://github.com/stevenelder","followers_url":"https://api.github.com/users/stevenelder/followers","following_url":"https://api.github.com/users/stevenelder/following{/other_user}","gists_url":"https://api.github.com/users/stevenelder/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenelder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenelder/subscriptions","organizations_url":"https://api.github.com/users/stevenelder/orgs","repos_url":"https://api.github.com/users/stevenelder/repos","events_url":"https://api.github.com/users/stevenelder/events{/privacy}","received_events_url":"https://api.github.com/users/stevenelder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T11:33:02Z","updated_at":"2015-02-24T09:38:50Z","closed_at":"2015-02-24T09:38:50Z","body":"I have specified the following in my recipe with the expectation that if the chef client is run within an older version installed it will be upgraded to the version specified (this works), BUT if no version of the package is installed the action :upgrade will detect this and install the package. At present (chocolatey 0.9.8.32 & chef client 12.0.3))  the chef run completes without installing the package outputting: \"Package chocolatey[nscp] already to latest version\" but no package is installed.\r\n```\r\nchocolatey 'nscp' do\r\n  version '0.4.1.103'\r\n  action :upgrade\r\n```\r\n"}}