return False if dry-run is set

This commit is contained in:
Andrey Pohilko
2016-10-15 12:00:20 +06:00
parent a81d227d86
commit 633f349fd5

View File

@@ -15,7 +15,6 @@ import argparse
## run
## registry.py -h
## to get more help
## or read README.md
##
## important: after removing the tags, run the garbage collector
## on your registry host:
@@ -120,7 +119,7 @@ class Registry:
def delete_tag(self, image_name, tag, dry_run):
if dry_run:
print 'would delete tag {}'.format(tag)
return True
return False
tag_digest = self.get_tag_digest(image_name, tag)