{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23758","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23758/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23758/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23758/events","html_url":"https://github.com/saltstack/salt/issues/23758","id":76624954,"number":23758,"title":"salt.states.archive.extracted doesn't extract zip if destination files exist","user":{"login":"es1o","id":565758,"avatar_url":"https://avatars.githubusercontent.com/u/565758?v=3","gravatar_id":"","url":"https://api.github.com/users/es1o","html_url":"https://github.com/es1o","followers_url":"https://api.github.com/users/es1o/followers","following_url":"https://api.github.com/users/es1o/following{/other_user}","gists_url":"https://api.github.com/users/es1o/gists{/gist_id}","starred_url":"https://api.github.com/users/es1o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es1o/subscriptions","organizations_url":"https://api.github.com/users/es1o/orgs","repos_url":"https://api.github.com/users/es1o/repos","events_url":"https://api.github.com/users/es1o/events{/privacy}","received_events_url":"https://api.github.com/users/es1o/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T07:03:15Z","updated_at":"2015-05-15T07:03:15Z","closed_at":null,"body":"I have a problem with Archive.extracted.\r\n\r\nMy state:\r\n```\r\nArchive.extracted('/usr/local/bin',\r\n    source=pillar('packer:download_link'),\r\n    makedirs='True',\r\n    archive_format='zip',\r\n    owner='root',\r\n    group='root',\r\n    mode='0755',\r\n    source_hash=pillar('packer:download_hash'),\r\n    if_missing=\"/usr/local/bin/packer-%s\" % pillar('packer:version'),\r\n    keep='True')\r\n```\r\n\r\nSalt runs unzip to extract archive: \r\n```[INFO    ] Executing command ['unzip', '/var/cache/salt/minion/files/base/_usr_local_bin_packer-0.7.5.zip', '-d', '/usr/local/bin'] in directory '/root'```\r\n\r\nIf target files exist unzip waits for \"y\" key.\r\n\r\nI propose to add something like unzip_options like tar_options for tar achives."}}