return False if dry-run is set
This commit is contained in:
@@ -14,8 +14,7 @@ import argparse
|
|||||||
##
|
##
|
||||||
## run
|
## run
|
||||||
## registry.py -h
|
## registry.py -h
|
||||||
## to get more help
|
## to get more help
|
||||||
## or read README.md
|
|
||||||
##
|
##
|
||||||
## important: after removing the tags, run the garbage collector
|
## important: after removing the tags, run the garbage collector
|
||||||
## on your registry host:
|
## on your registry host:
|
||||||
@@ -120,7 +119,7 @@ class Registry:
|
|||||||
def delete_tag(self, image_name, tag, dry_run):
|
def delete_tag(self, image_name, tag, dry_run):
|
||||||
if dry_run:
|
if dry_run:
|
||||||
print 'would delete tag {}'.format(tag)
|
print 'would delete tag {}'.format(tag)
|
||||||
return True
|
return False
|
||||||
|
|
||||||
tag_digest = self.get_tag_digest(image_name, tag)
|
tag_digest = self.get_tag_digest(image_name, tag)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user