Skip to content

Commit

Permalink
Deprecate snapshot options, use backup instead (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Aug 24, 2021
1 parent ae1fc1f commit 14e3b58
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,22 @@ def is_default(validator, properties, instance, schema):
)
exit_code = 1

if "snapshot" in configuration:
print(f"::error file={config}::'snapshot' is deprecated, use 'backup' instead.")
exit_code = 1

if "snapshot_exclude" in configuration:
print(f"::error file={config}::'snapshot_exclude' is deprecated, use 'backup_exclude' instead.")
exit_code = 1

if "snapshot_pre" in configuration:
print(f"::error file={config}::'snapshot_pre' is deprecated, use 'backup_pre' instead.")
exit_code = 1

if "snapshot_post" in configuration:
print(f"::error file={config}::'snapshot_post' is deprecated, use 'backup_post' instead.")
exit_code = 1

# Checks regarding build file(if found)
for file_type in ("json", "yaml", "yml"):
build = path / f"build.{file_type}"
Expand Down

0 comments on commit 14e3b58

Please sign in to comment.