def GetTypeManager(self):
      """ Get dynamic type manager """
      dynTypeMgr = None
      if self.hostSystem:
         try:
            dynTypeMgr = self.hostSystem.RetrieveDynamicTypeManager()
         except vmodl.fault.MethodNotFound as err:
            pass

      if not dynTypeMgr:
         # Older host not support RetrieveDynamicTypeManager
         cmdlineTypesMoId = "ha-dynamic-type-manager"
         dynTypeMgr = vmodl.reflect.DynamicTypeManager(cmdlineTypesMoId,
                                                       self.stub)
      return dynTypeMgr
def GetTypeManager ( self ) : dynTypeMgr = None if self . hostSystem : try : dynTypeMgr = self . hostSystem . RetrieveDynamicTypeManager ( ) except vmodl . fault . MethodNotFound as err : pass if not dynTypeMgr : cmdlineTypesMoId = "ha-dynamic-type-manager" dynTypeMgr = vmodl . reflect . DynamicTypeManager ( cmdlineTypesMoId , self . stub ) return dynTypeMgr
Get dynamic type manager