예제 #1
0
    def RetrieveContent(self):
        try:
            retval = Vim.ServiceInstanceContent(
                about=Vim.AboutInfo(),
                rootFolder=Vim.Folder("RootFolder"),
                sessionManager=Vim.SessionManager("SessionManager"),
                propertyCollector=Vmodl.query.PropertyCollector(
                    "PropertyCollector"))

            return retval
        except:
            logging.exception("retrieve content")
            return
예제 #2
0
 def CreateFolder(self, name):
     raise Vim.fault.DuplicateName(name=name, object=Vim.Folder("Original"))