tools/check_git_config.py
def is_in_google_corp():
  """True when running in google corp network."""
  try:
    return socket.getfqdn().endswith('.corp.google.com')
  except socket.error:
    logging.exception('Failed to get FQDN')
    return False
True when running in google corp network.
True when running in google corp network.
True when running in google corp network .
def is_in_google_corp():
  try:
    return socket.getfqdn().endswith('.corp.google.com')
  except socket.error:
    logging.exception('Failed to get FQDN')
    return False
def is_in_google_corp ( ) : try : return socket . getfqdn ( ) . endswith ( '.corp.google.com' ) except socket . error : logging . exception ( 'Failed to get FQDN' ) return False
True when running in google corp network.
True when running in google corp network .
"""True when running in google corp network."""