Go to file
Johannes Kulik 32c8d43a20 Add moref helper functions
Since the attribute access on a ManagedObjectReference can differ
depending on the SOAP library used in the backend, we and especially
depending projects should not rely on it, because that breaks the
abstraction layer oslo.vmware is supposed to provide. To help
transitioning to a newer backend library, we introduce two methods for
retrieving a ManagedObjectReference's value and type: get_moref_value()
and get_moref_type().

We cannot handle this by just returning our own ManagedObjectReference
object with uniform access, because it's hard to get control of all
morefs returned by the API.

In that spirit, we also change all references inside of oslo_vmware to
using `get_moref_value()` and `get_moref_type()` instead of directly
accessing the attributes.

This is part of phase 1 of
https://specs.openstack.org/openstack/oslo-specs/specs/victoria/oslo-vmware-soap-library-switch.html

Change-Id: I0b0a3d37f6c7d0c750b48596bc3d79b8b2cb0cee
2020-07-09 12:16:32 +02:00
2020-07-09 12:16:32 +02:00
2020-07-09 12:16:32 +02:00
2019-04-19 19:49:01 +00:00
2018-07-04 07:54:50 +07:00
2020-04-14 10:18:53 +00:00
2018-11-07 08:53:47 +00:00
2014-08-04 15:29:14 +02:00
2020-03-02 14:52:23 +01:00
2020-02-10 18:37:57 +01:00
2020-04-24 10:25:52 -05:00

Team and repository tags

image

oslo.vmware --- VMware support code for OpenStack

Latest Version

Downloads

The Oslo VMware library provides support for common VMware operations and APIs.

Description
Oslo VMware library for OpenStack projects
Readme 6.6 MiB
Languages
Python 100%