def get_root_folder(service_instance):
 try:
  log.trace('Retrieving root folder')
  return service_instance.RetrieveContent().rootFolder
 except vim.fault.VimFault as exc:
  raise salt.exceptions.VMwareApiError(exc.msg)
 except vmodl.RuntimeFault as exc:
  raise salt.exceptions.VMwareRuntimeError(exc.msg)

def get_root_folder ( service_instance ) : try : log . trace ( 'Retrieving root folder' ) return service_instance . RetrieveContent ( ) . rootFolder except vim . fault . VimFault as exc : raise salt . exceptions . VMwareApiError ( exc . msg ) except vmodl . RuntimeFault as exc : raise salt . exceptions . VMwareRuntimeError ( exc . msg )
returns the root folder of a vcenter .