def allows_latest(self, version_key_name):
    """
    Does this version key allow 'latest' as an option (e.g. "latest AMI" makes sense and is allowed)
    Args:
      version_key_name: the version key to check for "allow_latest"
    Returns:
      True if the version key allows latest, False if it does not
    Raises:
      ValueError if the key was not found
    """
    if not self.version_keys().has_key(version_key_name):
      raise RuntimeError("service registry doesn't have a version key entry for: {}".format(version_key_name))
    if not self.version_keys()[version_key_name].has_key("allow_latest"):
      raise RuntimeError("service registry key {} doesn't have an 'allow_latest' value".format(
        version_key_name))
    return self.version_keys()[version_key_name]["allow_latest"]
def allows_latest ( self , version_key_name ) : if not self . version_keys ( ) . has_key ( version_key_name ) : raise RuntimeError ( "service registry doesn't have a version key entry for: {}" . format ( version_key_name ) ) if not self . version_keys ( ) [ version_key_name ] . has_key ( "allow_latest" ) : raise RuntimeError ( "service registry key {} doesn't have an 'allow_latest' value" . format ( version_key_name ) ) return self . version_keys ( ) [ version_key_name ] [ "allow_latest" ]
Does this version key allow 'latest' as an option (e.g. "latest AMI" makes sense and is allowed)
    Args:
      version_key_name: the version key to check for "allow_latest"
    Returns:
      True if the version key allows latest, False if it does not
    Raises:
      ValueError if the key was not found