This way we can handle image names that are not supposed to have extensions.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- client/virt/virt_vm.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/virt/virt_vm.py b/client/virt/virt_vm.py index d4fb47d..6cdb91e 100644 --- a/client/virt/virt_vm.py +++ b/client/virt/virt_vm.py @@ -315,7 +315,10 @@ def get_image_filename(params, root_dir): image_format = params.get("image_format", "qcow2") if params.get("image_raw_device") == "yes": return image_name - image_filename = "%s.%s" % (image_name, image_format) + if image_format: + image_filename = "%s.%s" % (image_name, image_format) + else: + image_filename = image_name image_filename = virt_utils.get_path(root_dir, image_filename) return image_filename -- 1.7.7.6 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
