Skip to content

Commit

Permalink
♻️ Add quiet mode to validate and document it
Browse files Browse the repository at this point in the history
When running validate to change a hosted zones records, it's important not to error on things we don't care about (warnings like . at the end of a record). We do however want early feedback about things like incorrect yaml positions.
  • Loading branch information
jasonBirchall committed Jun 27, 2024
1 parent c5c4891 commit 893b0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ edit-zone:

validate-zones:
$(call check_aws_creds)
octodns-validate --config-file=$(CONFIG_FILE)
octodns-validate --config-file=$(CONFIG_FILE) --quiet

sync-dry-run:
$(call check_aws_creds)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Ensure your AWS credentials have the necessary permissions to manage Route53 hos
5. Ensure changes are made in alphabetical order within the file.

6. Validate your changes:

:memo: **Note:** This may look a little messy, but you're looking for errors rather than warnings.
```bash
make validate-zones
```
Expand Down

0 comments on commit 893b0cd

Please sign in to comment.