(args)
If --use-private-address is enabled, ensure the Docker path is for GCR.
If --use-private-address is enabled, ensure the Docker path is for GCR.
If -- use - private - address is enabled ensure the Docker path is for GCR .
def _check_private_address(args):
  """If --use-private-address is enabled, ensure the Docker path is for GCR."""
  if args.use_private_address:
    image = args.image or DEFAULT_IMAGE
    split = image.split('/', 1)
    if len(split) == 1 or not split[0].endswith('gcr.io'):
      raise ValueError(
          '--use-private-address must specify a --image with a gcr.io host')
def _check_private_address ( args ) : if args . use_private_address : image = args . image or DEFAULT_IMAGE split = image . split ( '/' , 1 ) if len ( split ) == 1 or not split [ 0 ] . endswith ( 'gcr.io' ) : raise ValueError ( '--use-private-address must specify a --image with a gcr.io host' )