[#108] preset: Allow to skip preset

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-04-01 16:10:04 +03:00
parent 0a6e51ccc9
commit d1ec9e4bf0
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ def main():
print("Create containers: Completed")
print(f" > Containers: {containers}")
if containers_count == 0 or len(containers) != containers_count:
if containers_count > 0 and len(containers) != containers_count:
print(f"Containers mismatch in preset: expected {containers_count}, created {len(containers)}")
if not ignore_errors:
sys.exit(ERROR_WRONG_CONTAINERS_COUNT)

View file

@ -71,7 +71,7 @@ def main():
print("Create buckets: Completed")
print(f" > Buckets: {buckets}")
if buckets_count == 0 or len(buckets) != buckets_count:
if buckets_count > 0 and len(buckets) != buckets_count:
print(f"Buckets mismatch in preset: expected {buckets_count}, created {len(buckets)}")
if not ignore_errors:
sys.exit(ERROR_WRONG_CONTAINERS_COUNT)