improved logic in forget
This commit is contained in:
@@ -86,9 +86,12 @@ def main(loki_url: str, dry_run: bool, **kwargs):
|
||||
except Exception:
|
||||
console.print_exception()
|
||||
else:
|
||||
snapshots.snapshot(loki_url)
|
||||
prune(loki_url, dry_run)
|
||||
if not dry_run:
|
||||
snapshots.snapshot(loki_url)
|
||||
size.get_size(loki_url)
|
||||
else:
|
||||
logger.debug('Skipping getting size because of dry run')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user