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