Rename the config variable for temp tag expiration per the pull request feedback.

This commit is contained in:
Jake Moshenko 2015-02-18 17:06:41 -05:00
parent 41108a0856
commit ec01373240
2 changed files with 2 additions and 2 deletions

View file

@ -197,4 +197,4 @@ class DefaultConfig(object):
SYSTEM_SERVICE_BLACKLIST = []
# Temporary tag expiration in seconds, this may actually be longer based on GC policy
PUSH_TEMP_TAG_EXPIRATION_S = 60 * 60
PUSH_TEMP_TAG_EXPIRATION_SEC = 60 * 60

View file

@ -469,7 +469,7 @@ def put_image_json(namespace, repository, image_id):
# Create a temporary tag to prevent this image from getting garbage collected while the push
# is in progress.
model.create_temporary_hidden_tag(repo, repo_image, app.config['PUSH_TEMP_TAG_EXPIRATION_S'])
model.create_temporary_hidden_tag(repo, repo_image, app.config['PUSH_TEMP_TAG_EXPIRATION_SEC'])
uuid = repo_image.storage.uuid