{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/7312","repository_url":"https://api.github.com/repos/juju/juju","labels_url":"https://api.github.com/repos/juju/juju/issues/7312/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/7312/comments","events_url":"https://api.github.com/repos/juju/juju/issues/7312/events","html_url":"https://github.com/juju/juju/pull/7312","id":226718851,"number":7312,"title":"Default to YAML output format when --schema flag is used.","user":{"login":"ExternalReality","id":1026081,"avatar_url":"https://avatars0.githubusercontent.com/u/1026081?v=3","gravatar_id":"","url":"https://api.github.com/users/ExternalReality","html_url":"https://github.com/ExternalReality","followers_url":"https://api.github.com/users/ExternalReality/followers","following_url":"https://api.github.com/users/ExternalReality/following{/other_user}","gists_url":"https://api.github.com/users/ExternalReality/gists{/gist_id}","starred_url":"https://api.github.com/users/ExternalReality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExternalReality/subscriptions","organizations_url":"https://api.github.com/users/ExternalReality/orgs","repos_url":"https://api.github.com/users/ExternalReality/repos","events_url":"https://api.github.com/users/ExternalReality/events{/privacy}","received_events_url":"https://api.github.com/users/ExternalReality/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-05T23:55:21Z","updated_at":"2017-05-09T22:10:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/7312","html_url":"https://github.com/juju/juju/pull/7312","diff_url":"https://github.com/juju/juju/pull/7312.diff","patch_url":"https://github.com/juju/juju/pull/7312.patch"},"body":"## Description of change\r\n\r\nThis change fixes the referenced bug by defaulting to YAML output format when the `--schema` flag is used with the `juju actions` command.\r\n\r\n## QA steps\r\n\r\n#### deploy a charm with actions (here we use mongodb)\r\n```bash\r\njuju deploy mongodb\r\n```\r\n\r\n#### list the actions for mongodb specifying no output format. You should see the command default tabular format.\r\n```bash\r\njuju actions mongodb\r\n```\r\n\r\n#### list the full schema of the mongodb actions. You should see the command default to YAML format\r\n```bash\r\njuju actions --schema mongodb\r\n```\r\n\r\n#### list the full schema of the mongodb actions specifying `tabular` as the format. You should see an error.\r\n```bash\r\njuju actions --schema --format=tabular mongodb\r\n\r\n>> ERROR full schema not compatible with tabular output\r\n```\r\n\r\n## Documentation changes\r\n\r\nThe CLI changes in accordance with the description of this PR.\r\n\r\n## Bug reference\r\n\r\n[lp#1682024](https://bugs.launchpad.net/juju/+bug/1682024)\r\n"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/300316514","html_url":"https://github.com/juju/juju/pull/7312#issuecomment-300316514","issue_url":"https://api.github.com/repos/juju/juju/issues/7312","id":300316514,"user":{"login":"ExternalReality","id":1026081,"avatar_url":"https://avatars0.githubusercontent.com/u/1026081?v=3","gravatar_id":"","url":"https://api.github.com/users/ExternalReality","html_url":"https://github.com/ExternalReality","followers_url":"https://api.github.com/users/ExternalReality/followers","following_url":"https://api.github.com/users/ExternalReality/following{/other_user}","gists_url":"https://api.github.com/users/ExternalReality/gists{/gist_id}","starred_url":"https://api.github.com/users/ExternalReality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExternalReality/subscriptions","organizations_url":"https://api.github.com/users/ExternalReality/orgs","repos_url":"https://api.github.com/users/ExternalReality/repos","events_url":"https://api.github.com/users/ExternalReality/events{/privacy}","received_events_url":"https://api.github.com/users/ExternalReality/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T22:10:44Z","updated_at":"2017-05-09T22:10:44Z","body":"!!build!!"}}
{"actor":{"display_login":"ExternalReality"}}