Skip to main content

Privacera Documentation

Common errors and warnings in Privacera Platform YAML config files

When you run the yaml_check command, it analyzes the YAML files and displays any errors/warnings, if found.

The following table lists the error and warning messages that will be displayed when you run the check.

Error/Warning Message

Description

Solution

Warning: Too many blank lines (1 > 0) (empty-lines)

There are empty lines in the YAML file.

Review the file config/custom-vars/vars.xxx.yml and remove the empty lines

Error: Too many spaces before colon (colons)

Extra space(s) found in the variable before the colon(:) at line X. It needs to be removed.

Review config/sample-vars/vars.xxx.yml and remove the space before quotes.

Error: String value is not quoted with any quotes (quoted-strings)

A variable value at line X is not quoted.

Review the file config/sample-vars/vars.xxx.yml and add the quotes.

Error: Syntax error: expected <block end>, but found '{' (syntax)

Syntax errors found in the YAML file.

Review the variables in file config/custom-vars/vars.xxx.yml, it could be a missing quote ( ' ) or bracket ( } ).

Warning: Too few spaces before comment (comments)

Space is missing between variable and comment.

Comment should start after a single space or from the next line.

Error: Duplication of key "AWS_REGION" in mapping (key-duplicates)

Variable 'X' has been used twice in the file.

Review the file and remove one of the duplicate variables.