this will fail if only one --raw argument is passed, but VM expects more than one size (if there's multiple disks), since you unconditionally do a vm.raw[diskid]. Either rework the patch to only use the value if it is actually given, or make it check if the right number of arguments are given.
Nick,
this will fail if only one --raw argument is passed, but VM expects more than one size (if there's multiple disks), since you unconditionally do a vm.raw[diskid]. Either rework the patch to only use the value if it is actually given, or make it check if the right number of arguments are given.