[Libvirt-cim] [PATCH] [TEST] Update SettingDefine/01_forward.py to support Graphics/Input

Guo Lian Yun yunguol at cn.ibm.com
Wed Dec 10 02:27:09 UTC 2008


libvirt-cim-bounces at redhat.com wrote on 2008-12-10 04:40:02:

> >          cn_id = {
> >                  'LogicalDisk' : test_disk,
> >                  'Memory'      : 'mem',
> >                  'NetworkPort' : test_mac,
> >                  'Processor'   : test_vcpus -1 }
> > +
> > +        curr_cim_rev, changeset = get_provider_version(options.
> virt, options.ip)
> > +        if curr_cim_rev >= input_graphics_pool_rev:
> > +            cn_id = {
> > +                    'LogicalDisk' : test_disk,
> > +                    'Memory'      : 'mem',
> > +                    'NetworkPort' : test_mac,
> > +                    'Processor'   : test_vcpus -1,
> > +                    'PointingDevice' : input_device,
> > +                    'DisplayController' : 'graphics'
> > +                    }
> 
> Since cn_id is already defined, instead of redefining it here, just add 
> the elements you need:
> 
> cn_id['PointingDevice'] = input_device
> 
> etc

  Fixed.
  Thanks!
> 
> -- 
> Kaitlin Rupert
> IBM Linux Technology Center
> kaitlin at linux.vnet.ibm.com
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20081210/335b2561/attachment.htm>


More information about the Libvirt-cim mailing list