On 03/12/2013 11:06 AM, [email protected] wrote:
+def change_media(name, device, source, options, **dargs):
+ """
+ Change media of CD or floppy drive.
+
+ @param: name: VM's name.
+ @param: path: Fully-qualified path or target of disk device
+ @param: source: source of the media
+ @param: options: command change_media options.
+ @param: dargs: standardized virsh function API keywords
+ @return: CmdResult instance
+ """
+ cmd = "change-media %s %s %s" % (name, device, source)
+ if options:
+ cmd += " %s " % options
+ logging.debug("virsh cmd = change-media %s" % cmd)
You can use 'debug=True' in dargs to debug.
+ return command(cmd, **dargs)
--
Best Regards
Yu Mingfei
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel