'Returns a host object for the host matching the
specified display name'

def get_host_by_displayname(self, displayname):

    self.module.debug('Running    LogicMonitor.get_host_by_displayname...')
    self.module.debug(('Looking    for    displayname    ' + displayname))
    self.module.debug("Making    RPC    call    to    'getHost'")
    host_json = json.loads(self.rpc('getHost', {'displayName': displayname}))
    if (host_json['status'] == 200):
        self.module.debug('RPC    call    succeeded')
        return host_json['data']
    else:
        self.module.debug('RPC    call    failed')
        self.module.debug(host_json)
        return None
