def _get_client_fqdn(self, client_info_contents):
    """Extracts a GRR client's FQDN from its client_info.yaml file.

    Args:
      client_info_contents: The contents of the client_info.yaml file.

    Returns:
      A (str, str) tuple representing client ID and client FQDN.
    """
    yamldict = yaml.safe_load(client_info_contents)
    fqdn = yamldict['system_info']['fqdn']
    client_id = yamldict['client_id'].split('/')[1]
    return client_id, fqdn
def _get_client_fqdn ( self , client_info_contents ) : yamldict = yaml . safe_load ( client_info_contents ) fqdn = yamldict [ 'system_info' ] [ 'fqdn' ] client_id = yamldict [ 'client_id' ] . split ( '/' ) [ 1 ] return client_id , fqdn
Extracts a GRR client's FQDN from its client_info.yaml file.

    Args:
      client_info_contents: The contents of the client_info.yaml file.

    Returns:
      A (str, str) tuple representing client ID and client FQDN.