-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass image/format as arguments to virt.import_image()
I originally rejected this because import_image() would be copying the image file if it wasn't in /var/lib/libvirt/images, and it seemed better and more explicit to make the user put the image on the right place (into /var/lib/libvirt/images). However, an alternate view point on "import" is "just use the disk image in-place, wherever it is", which is what the function does now with this change. In that case, passing arguments makes more sense than setting instance- wide variables. Signed-off-by: Jiri Jaburek <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters