{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28051","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28051/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28051/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28051/events","html_url":"https://github.com/saltstack/salt/issues/28051","id":111932553,"number":28051,"title":"Scheduler duplicates args when configured via minion config file.","user":{"login":"hal58th","id":8431974,"avatar_url":"https://avatars.githubusercontent.com/u/8431974?v=3","gravatar_id":"","url":"https://api.github.com/users/hal58th","html_url":"https://github.com/hal58th","followers_url":"https://api.github.com/users/hal58th/followers","following_url":"https://api.github.com/users/hal58th/following{/other_user}","gists_url":"https://api.github.com/users/hal58th/gists{/gist_id}","starred_url":"https://api.github.com/users/hal58th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hal58th/subscriptions","organizations_url":"https://api.github.com/users/hal58th/orgs","repos_url":"https://api.github.com/users/hal58th/repos","events_url":"https://api.github.com/users/hal58th/events{/privacy}","received_events_url":"https://api.github.com/users/hal58th/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Regression","name":"Regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","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":2634,"closed_issues":2776,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-10-19T17:33:06Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-17T00:12:46Z","updated_at":"2015-10-19T17:49:50Z","closed_at":null,"body":"There is a problem where the args for a schedule are duplicated every time you restart salt-minion (and maybe master). This problem **ONLY** seems to happen if you configure the schedule via a config file.\r\n\r\nThis is the test setup and execution:\r\n```\r\n/etc/salt/minion.d# cat highstate2.conf\r\nschedule:\r\n  someSchedule:\r\n    function: cmd.run\r\n    args:\r\n      - \"echo hi\"\r\n    minutes: 5\r\n    seconds: 0\r\n\r\nservice salt-minion restart\r\n\r\nsalt '*' schedule.list show_all=True\r\n\r\n      someSchedule:\r\n        args:\r\n        - echo hi\r\n        enabled: true\r\n        function: cmd.run\r\n        jid_include: true\r\n        maxrunning: 1\r\n        minutes: 5\r\n        name: someSchedule\r\n        seconds: 0\r\n\r\nservice salt-minion restart\r\nsalt '*' schedule.list show_all=True\r\n\r\n      someSchedule:\r\n        args:\r\n        - echo hi\r\n        - echo hi\r\n        enabled: true\r\n        function: cmd.run\r\n        jid_include: true\r\n        maxrunning: 1\r\n        minutes: 5\r\n        name: someSchedule\r\n        seconds: 0\r\n```\r\n\r\nThis use to work before 2015.8.1 (unsure when it broke). I am going off of this document.\r\nhttps://docs.saltstack.com/en/latest/topics/jobs/schedule.html\r\n\r\n```\r\nSalt Version:\r\n           Salt: 2015.8.1\r\n\r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: Not Installed\r\n           Mako: 0.9.1\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.4.0\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.4\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: 1.5\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.3.0\r\n   mysql-python: 1.2.3\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n\r\nSystem Versions:\r\n           dist: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 3.13.0-24-generic\r\n         system: Ubuntu 14.04 trusty\r\n```"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/149295623","html_url":"https://github.com/saltstack/salt/issues/28051#issuecomment-149295623","issue_url":"https://api.github.com/repos/saltstack/salt/issues/28051","id":149295623,"user":{"login":"garethgreenaway","id":718525,"avatar_url":"https://avatars.githubusercontent.com/u/718525?v=3","gravatar_id":"","url":"https://api.github.com/users/garethgreenaway","html_url":"https://github.com/garethgreenaway","followers_url":"https://api.github.com/users/garethgreenaway/followers","following_url":"https://api.github.com/users/garethgreenaway/following{/other_user}","gists_url":"https://api.github.com/users/garethgreenaway/gists{/gist_id}","starred_url":"https://api.github.com/users/garethgreenaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethgreenaway/subscriptions","organizations_url":"https://api.github.com/users/garethgreenaway/orgs","repos_url":"https://api.github.com/users/garethgreenaway/repos","events_url":"https://api.github.com/users/garethgreenaway/events{/privacy}","received_events_url":"https://api.github.com/users/garethgreenaway/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T17:49:50Z","updated_at":"2015-10-19T17:49:50Z","body":"Will take a look."}}