@depends(HAS_PYVMOMI)
def get_ntp_config(host, username, password, protocol=None, port=None, host_names=None):
 service_instance = salt.utils.vmware.get_service_instance(host=host, username=username, password=password, protocol=protocol, port=port)
 host_names = _check_hosts(service_instance, host, host_names)
 ret = {}
 for host_name in host_names:
  host_ref = _get_host_ref(service_instance, host, host_name=host_name)
  ntp_config = host_ref.configManager.dateTimeSystem.dateTimeInfo.ntpConfig.server
  ret.update({host_name: ntp_config})
 return ret

@ depends ( HAS_PYVMOMI ) def get_ntp_config ( host , username , password , protocol = None , port = None , host_names = None ) : service_instance = salt . utils . vmware . get_service_instance ( host = host , username = username , password = password , protocol = protocol , port = port ) host_names = _check_hosts ( service_instance , host , host_names ) ret = { } for host_name in host_names : host_ref = _get_host_ref ( service_instance , host , host_name = host_name ) ntp_config = host_ref . configManager . dateTimeSystem . dateTimeInfo . ntpConfig . server ret . update ( { host_name : ntp_config } ) return ret
get the ntp configuration information for a given host or list of host_names .