@classmethod
    def validate_max_length(self, field_name, value, max_length):
        if len(value) > max_length:
            raise AzureInvalidCommand(
                '%s is too long. Length must be at most %d characters.' %
                (field_name, max_length))
        return True
dataset/ETHPy150Open SUSE/azurectl/azurectl/utils/validations.py/Validations.validate_max_length/original