{"action":"created","issue":{"url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/11","labels_url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/11/comments","events_url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/11/events","html_url":"https://github.com/dguerri/LibVirtKvm-scripts/issues/11","id":69024922,"number":11,"title":"Multiple block devices","user":{"login":"pcwrt","id":11985720,"avatar_url":"https://avatars.githubusercontent.com/u/11985720?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwrt","html_url":"https://github.com/pcwrt","followers_url":"https://api.github.com/users/pcwrt/followers","following_url":"https://api.github.com/users/pcwrt/following{/other_user}","gists_url":"https://api.github.com/users/pcwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwrt/subscriptions","organizations_url":"https://api.github.com/users/pcwrt/orgs","repos_url":"https://api.github.com/users/pcwrt/repos","events_url":"https://api.github.com/users/pcwrt/events{/privacy}","received_events_url":"https://api.github.com/users/pcwrt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"dguerri","id":509264,"avatar_url":"https://avatars.githubusercontent.com/u/509264?v=3","gravatar_id":"","url":"https://api.github.com/users/dguerri","html_url":"https://github.com/dguerri","followers_url":"https://api.github.com/users/dguerri/followers","following_url":"https://api.github.com/users/dguerri/following{/other_user}","gists_url":"https://api.github.com/users/dguerri/gists{/gist_id}","starred_url":"https://api.github.com/users/dguerri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguerri/subscriptions","organizations_url":"https://api.github.com/users/dguerri/orgs","repos_url":"https://api.github.com/users/dguerri/repos","events_url":"https://api.github.com/users/dguerri/events{/privacy}","received_events_url":"https://api.github.com/users/dguerri/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/milestones/1","html_url":"https://github.com/dguerri/LibVirtKvm-scripts/milestones/2.0","labels_url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/milestones/1/labels","id":1131637,"number":1,"title":"2.0","description":"","creator":{"login":"dguerri","id":509264,"avatar_url":"https://avatars.githubusercontent.com/u/509264?v=3","gravatar_id":"","url":"https://api.github.com/users/dguerri","html_url":"https://github.com/dguerri","followers_url":"https://api.github.com/users/dguerri/followers","following_url":"https://api.github.com/users/dguerri/following{/other_user}","gists_url":"https://api.github.com/users/dguerri/gists{/gist_id}","starred_url":"https://api.github.com/users/dguerri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguerri/subscriptions","organizations_url":"https://api.github.com/users/dguerri/orgs","repos_url":"https://api.github.com/users/dguerri/repos","events_url":"https://api.github.com/users/dguerri/events{/privacy}","received_events_url":"https://api.github.com/users/dguerri/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-05-25T15:56:02Z","updated_at":"2015-05-25T16:10:28Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-16T22:51:04Z","updated_at":"2015-05-25T16:10:54Z","closed_at":null,"body":"First:  awesome script ... thanks for writing this!\r\n\r\nFor both backups and consolidation the script breaks the list of block_devices returned from \"virsh domblklist\" into block_device using:\r\nfor block_device in \"$block_devices\"; do\r\n\"for\" will treat \"$block_devices\" (in quotes) as a single argument and assign all of the block devices to $block_device.  I think what you meant was (no quotes):\r\n    for block_device in $block_devices; do\r\n\r\nFor example (with quotes):\r\n    # for i in \"a b c\"; do printf \"arg: $i\\n\"; done\r\nReturns:\r\n    \"arg: a b c\"\r\n\r\nWhere (without quotes):\r\n    # for i in a b c; do printf \"arg: $i\\n\"; done\r\nReturns:\r\n    arg: a\r\n    arg: b\r\n    arg: c\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/comments/105258095","html_url":"https://github.com/dguerri/LibVirtKvm-scripts/issues/11#issuecomment-105258095","issue_url":"https://api.github.com/repos/dguerri/LibVirtKvm-scripts/issues/11","id":105258095,"user":{"login":"dguerri","id":509264,"avatar_url":"https://avatars.githubusercontent.com/u/509264?v=3","gravatar_id":"","url":"https://api.github.com/users/dguerri","html_url":"https://github.com/dguerri","followers_url":"https://api.github.com/users/dguerri/followers","following_url":"https://api.github.com/users/dguerri/following{/other_user}","gists_url":"https://api.github.com/users/dguerri/gists{/gist_id}","starred_url":"https://api.github.com/users/dguerri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguerri/subscriptions","organizations_url":"https://api.github.com/users/dguerri/orgs","repos_url":"https://api.github.com/users/dguerri/repos","events_url":"https://api.github.com/users/dguerri/events{/privacy}","received_events_url":"https://api.github.com/users/dguerri/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T16:10:54Z","updated_at":"2015-05-25T16:10:54Z","body":"Same as #12."}}