def write_ovf_descriptor(self, ovf_files):
print('<STR_LIT>')<EOL>ovf_manager = self.vcenter_conn.content.ovfManager<EOL>print('<STR_LIT>')<EOL>ovf_parameters = vim.OvfManager.CreateDescriptorParams()<EOL>ovf_parameters.name = self.name<EOL>ovf_parameters.ovfFiles = ovf_files<EOL>vm_descriptor_result = ovf_manager.CreateDescriptor(obj=self.vm_obj,<EOL>cdp=ovf_parameters)<EOL>if vm_descriptor_result.error:<EOL><INDENT>raise vm_descriptor_result.error[<NUM_LIT:0>].fault<EOL><DEDENT>else:<EOL><INDENT>vm_descriptor = vm_descriptor_result.ovfDescriptor<EOL>target_ovf_descriptor_path = os.path.join(self.vm_dl_path,<EOL>self.name + '<STR_LIT>')<EOL>print('<STR_LIT>'.format(<EOL>target_ovf_descriptor_path))<EOL>with open(target_ovf_descriptor_path, '<STR_LIT:wb>') as handle:<EOL><INDENT>handle.write(vm_descriptor)<EOL><DEDENT><DEDENT>
Query vCenter for ovf descriptor information, and write it to a file
:param ovf_files:
:return: