{"action":"created","issue":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2265","repository_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2265/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2265/comments","events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2265/events","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/2265","id":155028376,"number":2265,"title":"[module:uninstall] trying to reinstall module in a chain file, module:uninstall/install fails","user":{"login":"novia713","id":423279,"avatar_url":"https://avatars.githubusercontent.com/u/423279?v=3","gravatar_id":"","url":"https://api.github.com/users/novia713","html_url":"https://github.com/novia713","followers_url":"https://api.github.com/users/novia713/followers","following_url":"https://api.github.com/users/novia713/following{/other_user}","gists_url":"https://api.github.com/users/novia713/gists{/gist_id}","starred_url":"https://api.github.com/users/novia713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novia713/subscriptions","organizations_url":"https://api.github.com/users/novia713/orgs","repos_url":"https://api.github.com/users/novia713/repos","events_url":"https://api.github.com/users/novia713/events{/privacy}","received_events_url":"https://api.github.com/users/novia713/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T13:22:56Z","updated_at":"2016-05-16T18:15:41Z","closed_at":null,"body":"i have the following chain file\r\n```\r\ncommands:\r\n  - command: module:uninstall\r\n    arguments:\r\n      module:\r\n        - '%{{module}}'\r\n    options:\r\n      verbose\r\n  - command: module:install\r\n    arguments:\r\n      module:\r\n        - '%{{module}}'\r\n    options:\r\n      verbose\r\n```\r\n\r\ni execute it with the following command:\r\n```drupal chain --file=\"~/.console/chain/reinstall.yml\" --placeholder=\"module:chosen\"```\r\n\r\nmy idea is to uninstall & then install a given module.\r\nstrangely, it works if i do the operations manually, but it fails when using the chain file, as seen in the following screenshot:\r\n\r\n![seleccion_571](https://cloud.githubusercontent.com/assets/423279/15290610/eca22b64-1b79-11e6-8e58-5a7886b96a84.png)\r\n\r\nis the placeholder in .yml file wrong?"},"comment":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/comments/219501825","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/2265#issuecomment-219501825","issue_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2265","id":219501825,"user":{"login":"novia713","id":423279,"avatar_url":"https://avatars.githubusercontent.com/u/423279?v=3","gravatar_id":"","url":"https://api.github.com/users/novia713","html_url":"https://github.com/novia713","followers_url":"https://api.github.com/users/novia713/followers","following_url":"https://api.github.com/users/novia713/following{/other_user}","gists_url":"https://api.github.com/users/novia713/gists{/gist_id}","starred_url":"https://api.github.com/users/novia713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novia713/subscriptions","organizations_url":"https://api.github.com/users/novia713/orgs","repos_url":"https://api.github.com/users/novia713/repos","events_url":"https://api.github.com/users/novia713/events{/privacy}","received_events_url":"https://api.github.com/users/novia713/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T18:15:40Z","updated_at":"2016-05-16T18:15:40Z","body":"well, finally got it working.\r\n![seleccion_574](https://cloud.githubusercontent.com/assets/423279/15299033/cd6e56ea-1ba2-11e6-8422-a5c228c96913.png)\r\n\r\n\r\nseems «uninstall« expects a string and «install» expects an array.\r\n\r\n**i firmly suggest «uninstall» should accept an array**\r\n\r\ni leave here my chain file for other people interested on this.\r\n\r\n```\r\ncommands:\r\n  - command: module:uninstall\r\n    arguments:\r\n      module: '%{{module}}'\r\n    options:\r\n      verbose\r\n  - command: module:install\r\n    arguments:\r\n      module:\r\n      - '%{{module}}'\r\n    options:\r\n      verbose\r\n```"}}