{"action":"created","issue":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/252","repository_url":"https://api.github.com/repos/chef-partners/knife-vsphere","labels_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/252/comments","events_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/252/events","html_url":"https://github.com/chef-partners/knife-vsphere/issues/252","id":150404259,"number":252,"title":"`vm snapshot ... --create ...` fails with \"missing required parameter memory\" error","user":{"login":"kenny-evitt","id":1461730,"avatar_url":"https://avatars.githubusercontent.com/u/1461730?v=3","gravatar_id":"","url":"https://api.github.com/users/kenny-evitt","html_url":"https://github.com/kenny-evitt","followers_url":"https://api.github.com/users/kenny-evitt/followers","following_url":"https://api.github.com/users/kenny-evitt/following{/other_user}","gists_url":"https://api.github.com/users/kenny-evitt/gists{/gist_id}","starred_url":"https://api.github.com/users/kenny-evitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenny-evitt/subscriptions","organizations_url":"https://api.github.com/users/kenny-evitt/orgs","repos_url":"https://api.github.com/users/kenny-evitt/repos","events_url":"https://api.github.com/users/kenny-evitt/events{/privacy}","received_events_url":"https://api.github.com/users/kenny-evitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-22T15:43:43Z","updated_at":"2016-04-22T18:38:36Z","closed_at":null,"body":"I ran:\r\n\r\n`knife vsphere vm snapshot \"MY-VM-NAME\" --create \"Snapshot 0\"`\r\n\r\nThe result:\r\n\r\n`knife : ERROR: RuntimeError: missing required parameter memory`\r\n\r\nIn my case, I *don't* want to include the memory state in the snapshot, but there's no 'no-memory' option listed in the sub-sub-command help.\r\n\r\n[The relevant code](https://github.com/chef-partners/knife-vsphere/blob/72d69f68dd01f7c45646944ef1c58cf0d0966f25/lib/chef/knife/vsphere_vm_snapshot.rb#L94-L97) looks good. But [I can't find CreateSnapshot_Task in the RbVmomi code](https://github.com/rlane/rbvmomi/search?utf8=%E2%9C%93&q=CreateSnapshot_Task&type=Code) so I'm guessing that comes from the vSphere API directly.\r\n\r\nI'm running vCenter Server 5.5 – maybe the API changed since 5.0?"},"comment":{"url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/comments/213547208","html_url":"https://github.com/chef-partners/knife-vsphere/issues/252#issuecomment-213547208","issue_url":"https://api.github.com/repos/chef-partners/knife-vsphere/issues/252","id":213547208,"user":{"login":"swalberg","id":221368,"avatar_url":"https://avatars.githubusercontent.com/u/221368?v=3","gravatar_id":"","url":"https://api.github.com/users/swalberg","html_url":"https://github.com/swalberg","followers_url":"https://api.github.com/users/swalberg/followers","following_url":"https://api.github.com/users/swalberg/following{/other_user}","gists_url":"https://api.github.com/users/swalberg/gists{/gist_id}","starred_url":"https://api.github.com/users/swalberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalberg/subscriptions","organizations_url":"https://api.github.com/users/swalberg/orgs","repos_url":"https://api.github.com/users/swalberg/repos","events_url":"https://api.github.com/users/swalberg/events{/privacy}","received_events_url":"https://api.github.com/users/swalberg/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T18:38:36Z","updated_at":"2016-04-22T18:38:36Z","body":"Hey thanks for pointing this out. I thought the `default: false` at the top of the file should have taken care of that. I'd rather have a sensible default than force people to add long opts. Let me have a look!"}}