{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25054","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25054/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25054/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25054/events","html_url":"https://github.com/saltstack/salt/issues/25054","id":91938490,"number":25054,"title":"Develop: Passed invalid arguments: string indices must be integers, not str","user":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars.githubusercontent.com/u/9383935?v=3","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Beryllium","name":"Beryllium","color":"fbca04"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"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/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/60","html_url":"https://github.com/saltstack/salt/milestones/Be%202","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/60/labels","id":1169057,"number":60,"title":"Be 2","description":null,"creator":{"login":"whiteinge","id":91293,"avatar_url":"https://avatars.githubusercontent.com/u/91293?v=3","gravatar_id":"","url":"https://api.github.com/users/whiteinge","html_url":"https://github.com/whiteinge","followers_url":"https://api.github.com/users/whiteinge/followers","following_url":"https://api.github.com/users/whiteinge/following{/other_user}","gists_url":"https://api.github.com/users/whiteinge/gists{/gist_id}","starred_url":"https://api.github.com/users/whiteinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whiteinge/subscriptions","organizations_url":"https://api.github.com/users/whiteinge/orgs","repos_url":"https://api.github.com/users/whiteinge/repos","events_url":"https://api.github.com/users/whiteinge/events{/privacy}","received_events_url":"https://api.github.com/users/whiteinge/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-06-17T18:05:37Z","updated_at":"2015-06-30T00:05:55Z","due_on":"2015-07-21T05:59:00Z","closed_at":null},"comments":1,"created_at":"2015-06-29T23:59:38Z","updated_at":"2015-07-01T15:21:09Z","closed_at":null,"body":"Testing Environment:\r\nOS: Windows 8.1\r\nRunning the latest development branch on Windows 8.1. Here's the versions report:\r\n```\r\nSalt Version:\r\n               Salt: 2015.5.0-1662-g1c4030b\r\n\r\n    Dependency Versions:\r\n             Jinja2: 2.7.3\r\n           M2Crypto: Not Installed\r\n               Mako: Not Installed\r\n             PyYAML: 3.11\r\n              PyZMQ: 14.6.0\r\n             Python: 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]\r\n               RAET: Not Installed\r\n            Tornado: 4.2\r\n                ZMQ: 4.0.5\r\n              ioflo: Not Installed\r\n            libnacl: Not Installed\r\n       msgpack-pure: Not Installed\r\n     msgpack-python: 0.4.6\r\n           pycrypto: 2.6.1\r\n\r\n    System Versions:\r\n               dist:\r\n            machine: AMD64\r\n            release: 8\r\n             system: 8 6.2.9200  Multiprocessor Free\r\n```\r\nTo recreate:\r\nRun the following state file to create a text file on the minion:\r\n```\r\nmy_file:\r\n  file.managed:\r\n   - name: c:\\stuff1.txt\r\n   - contents: 'hello and a few other things world'\r\n```\r\nThen run the following state file to comment out a line in the file.\r\n```\r\ncomment:\r\n  file.comment:\r\n    - name: c:\\stuff1.txt\r\n    - regex: '^hello'\r\n    - char: '#'\r\n```\r\nResult:\r\n```\r\n    Passed invalid arguments: string indices must be integers, not str\r\n\r\n        Execute a set list of state files from an environment.\r\n\r\n        test\r\n            Notify states to execute in test-only (dry-run) mode.\r\n\r\n            Sets the ``test`` variable in the minion ``opts`` for the duration of\r\n            the state run.\r\n        pillar\r\n            Custom Pillar data can be passed with the ``pillar`` kwarg. Values\r\n            passed here will override hard-coded Pillar values.\r\n        queue : ``False``\r\n            Instead of failing immediately when another state run is in progress,\r\n            queue the new state run to begin running once the other has finished.\r\n\r\n            This option starts a new thread for each queued state run so use this\r\n            option sparingly.\r\n        saltenv : None\r\n            Specify a ``file_roots`` environment.\r\n\r\n            .. versionchanged:: 0.17.0\r\n                Argument name changed from ``env`` to ``saltenv``.\r\n            .. versionchanged:: 2014.7\r\n                Defaults to None. If no saltenv is specified, the minion config will\r\n                be checked for a saltenv and if found, it will be used. If none is found,\r\n                base will be used.\r\n        pillarenv : None\r\n            Specify a ``pillar_roots`` environment. By default all pillar environments\r\n            merged together will be used.\r\n        concurrent:\r\n            WARNING: This flag is potentially dangerous. It is designed\r\n            for use when multiple state runs can safely be run at the same\r\n            Do not use this flag for performance optimization.\r\n        localconfig:\r\n            Instead of using running minion opts, load ``localconfig`` and merge that\r\n            with the running minion opts. This functionality is intended for using\r\n            \"roots\" of salt directories (with their own minion config, pillars,\r\n            file_roots) to run highstate out of.\r\n\r\n        CLI Example:\r\n\r\n        .. code-block:: bash\r\n\r\n            salt '*' state.sls core,edit.vim dev\r\n            salt '*' state.sls core exclude=\"[{'id': 'id_to_exclude'}, {'sls': 'sls_to_exclude'}]\"\r\n\r\n            salt '*' state.sls myslsfile pillar=\"{foo: 'Foo!', bar: 'Bar!'}\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/117713528","html_url":"https://github.com/saltstack/salt/issues/25054#issuecomment-117713528","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25054","id":117713528,"user":{"login":"blakev","id":4885156,"avatar_url":"https://avatars.githubusercontent.com/u/4885156?v=3","gravatar_id":"","url":"https://api.github.com/users/blakev","html_url":"https://github.com/blakev","followers_url":"https://api.github.com/users/blakev/followers","following_url":"https://api.github.com/users/blakev/following{/other_user}","gists_url":"https://api.github.com/users/blakev/gists{/gist_id}","starred_url":"https://api.github.com/users/blakev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakev/subscriptions","organizations_url":"https://api.github.com/users/blakev/orgs","repos_url":"https://api.github.com/users/blakev/repos","events_url":"https://api.github.com/users/blakev/events{/privacy}","received_events_url":"https://api.github.com/users/blakev/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T15:21:09Z","updated_at":"2015-07-01T15:21:09Z","body":"Is anybody currently working on this? "}}