[Libvirt-cim] [PATCH 2 of 3] [TEST] Fixing HostSystem/03_hs_to_settdefcap.py

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Aug 4 23:04:22 UTC 2009


>                   }
> +
> +        curr_cim_rev, changeset = get_provider_version(virt, server)
> +        if curr_cim_rev >= libvirt_rasd_storagepool_changes:
> +            sto_vol_cn = 'StorageVolumeResourceAllocationSettingData'
> +            storagevol_rasd_cn = get_typed_class(virt, sto_vol_cn)
> +            rtype[storagevol_rasd_cn] = 32768

Instead of setting the value 32768 here, can you create a variable in 
const.py, that way this value has more meaning.

We should have done the same for the other values, but that's something 
we can clean up later.


-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list