{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/49154","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/49154/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/49154/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/49154/events","html_url":"https://github.com/saltstack/salt/issues/49154","id":351209519,"node_id":"MDU6SXNzdWUzNTEyMDk1MTk=","number":49154,"title":"managed - keep_source option, not clean cached file.","user":{"login":"CutePotatoDev","id":2453573,"node_id":"MDQ6VXNlcjI0NTM1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2453573?v=4","gravatar_id":"","url":"https://api.github.com/users/CutePotatoDev","html_url":"https://github.com/CutePotatoDev","followers_url":"https://api.github.com/users/CutePotatoDev/followers","following_url":"https://api.github.com/users/CutePotatoDev/following{/other_user}","gists_url":"https://api.github.com/users/CutePotatoDev/gists{/gist_id}","starred_url":"https://api.github.com/users/CutePotatoDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CutePotatoDev/subscriptions","organizations_url":"https://api.github.com/users/CutePotatoDev/orgs","repos_url":"https://api.github.com/users/CutePotatoDev/repos","events_url":"https://api.github.com/users/CutePotatoDev/events{/privacy}","received_events_url":"https://api.github.com/users/CutePotatoDev/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"node_id":"MDU6TGFiZWw0MTM4NzcyMw==","url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":41388135,"node_id":"MDU6TGFiZWw0MTM4ODEzNQ==","url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143","default":false},{"id":194766324,"node_id":"MDU6TGFiZWwxOTQ3NjYzMjQ=","url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39","default":false},{"id":41387450,"node_id":"MDU6TGFiZWw0MTM4NzQ1MA==","url":"https://api.github.com/repos/saltstack/salt/labels/State%20Module","name":"State Module","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"node_id":"MDk6TWlsZXN0b25lOTI2NQ==","number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"node_id":"MDQ6VXNlcjUwNzU5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":1830,"closed_issues":8010,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2018-08-16T15:47:58Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-08-16T13:38:12Z","updated_at":"2018-08-16T19:56:15Z","closed_at":null,"author_association":"NONE","body":"### Description of Issue/Question\r\nHello.\r\nsalt.states.file.managed have option - keep_source. It description say:\r\nSet to False to **discard the cached copy of the source file** once the state completes. This can be useful for larger files to keep them from taking up space **in minion cache**.  ...\r\n\r\nProblem is that after managed command state execution. Cached file is still in minion cache. \r\n### Setup\r\nmy .sls file (./states/copy.sls):\r\n```\r\n DIST:\r\n      file.managed:\r\n        - name: /xxxx/dpldev/packages/rel_xxxx_xxxx.tar.gz\r\n        - source: salt://packages//rel_xxxx_xxxx.tar.gz\r\n        - user: 16379\r\n        - group: 200\r\n        - mode: 744\r\n        - keep_source: False\r\n```\r\n### Steps to Reproduce Issue\r\nsudo salt  '*myserver*' state.apply states.copy \r\n\r\n### Versions Report\r\n```\r\nSalt Version:\r\n           Salt: 2018.3.2\r\n\r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 1.5\r\n      docker-py: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: 0.28.2\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.5.6\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.5 (default, Apr 11 2018, 07:36:10)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.3.0\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.1.4\r\n\r\nSystem Versions:\r\n           dist: centos 7.5.1804 Core\r\n         locale: UTF-8\r\n        machine: x86_64\r\n        release: 3.10.0-862.3.2.el7.x86_64\r\n         system: Linux\r\n        version: CentOS Linux 7.5.1804 Core\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/413665773","html_url":"https://github.com/saltstack/salt/issues/49154#issuecomment-413665773","issue_url":"https://api.github.com/repos/saltstack/salt/issues/49154","id":413665773,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzY2NTc3Mw==","user":{"login":"terminalmage","id":328598,"node_id":"MDQ6VXNlcjMyODU5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/328598?v=4","gravatar_id":"","url":"https://api.github.com/users/terminalmage","html_url":"https://github.com/terminalmage","followers_url":"https://api.github.com/users/terminalmage/followers","following_url":"https://api.github.com/users/terminalmage/following{/other_user}","gists_url":"https://api.github.com/users/terminalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/terminalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terminalmage/subscriptions","organizations_url":"https://api.github.com/users/terminalmage/orgs","repos_url":"https://api.github.com/users/terminalmage/repos","events_url":"https://api.github.com/users/terminalmage/events{/privacy}","received_events_url":"https://api.github.com/users/terminalmage/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T19:56:15Z","updated_at":"2018-08-16T19:56:15Z","author_association":"MEMBER","body":"Fixed in https://github.com/saltstack/salt/pull/49164"}}
{"actor":{"display_login":"terminalmage"}}