[Libvirt-cim] [PATCH] [TEST] Move some functions from live.py and utils.py to xm_virt_util.py

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Nov 5 20:27:02 UTC 2008


> diff -r 319e2e9509d3 -r 79b321ebebfd lib/VirtLib/utils.py
> --- a/lib/VirtLib/utils.py	Tue Nov 04 05:22:21 2008 -0800
> +++ b/lib/VirtLib/utils.py	Tue Nov 04 22:05:49 2008 -0800
> @@ -103,11 +103,3 @@
>          cmd = 'ssh-keygen -y -f %s' % SSH_KEY
>          pubkey = commands.getoutput(cmd)
>          write_pubkey(pubkey)
> -
> -def run_remote_guest(ip, domain, command):
> -    """ Execute commands on remote guest console.
> -    """
> -
> -    cmd = 'python %s %s "%s"' % (CONSOLE_APP_PATH, domain, command)
> -
> -    return run_remote(ip, cmd)

CONSOLE_APP_PATH = "/tmp/Console.py"

This needs to be removed from this file and placed in 
lib/XenKvmLib/xm_virt_util.py
-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list