def get_object_property(vim, moref, property_name):
    props = get_object_properties(vim, moref, [property_name])
    prop_val = None
    if props:
        prop = None
        if hasattr(props[0], 'propSet'):
            # propSet will be set only if the server provides value
            # for the field
            prop = props[0].propSet
        if prop:
            prop_val = prop[0].val
    return prop_val
Get property of the given managed object.
dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/vim_util.py/get_object_property