Re: [libvirt] [PATCH] createLinux requires full-access connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 06, 2009 at 03:24:43PM +0300, Dan Kenigsberg wrote:
> ---
>  docs/examples/python/domstart.py |    2 +-
>  python/tests/create.py           |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

ACK, clearly bogus example scripts ! I'm astonished no one has
ever seen this problem before since they've been broken since 
day-1 AFAICT

Daniel

> 
> diff --git a/docs/examples/python/domstart.py b/docs/examples/python/domstart.py
> index 64434c4..52fb79e 100755
> --- a/docs/examples/python/domstart.py
> +++ b/docs/examples/python/domstart.py
> @@ -32,7 +32,7 @@ if len(sys.argv) != 2:
>  
>  (name, xmldesc) = read_domain(sys.argv[1])
>  
> -conn = libvirt.openReadOnly(None)
> +conn = libvirt.open(None)
>  if conn == None:
>      print 'Failed to open connection to the hypervisor'
>      sys.exit(1)
> diff --git a/python/tests/create.py b/python/tests/create.py
> index 0da89a9..d2c434e 100755
> --- a/python/tests/create.py
> +++ b/python/tests/create.py
> @@ -52,7 +52,7 @@ else:
>      initrdU = "<initrd>" + initrdU + "</initrd>"
>  
>  
> -conn = libvirt.openReadOnly(None)
> +conn = libvirt.open(None)
>  if conn == None:
>      print 'Failed to open connection to the hypervisor'
>      sys.exit(1)
> -- 
> 1.6.2.5
> 
> --
> Libvir-list mailing list
> Libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]