From ec01373240af0bf9ba8f14c3a0c2271f40b5db82 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Wed, 18 Feb 2015 17:06:41 -0500 Subject: [PATCH] Rename the config variable for temp tag expiration per the pull request feedback. --- config.py | 2 +- endpoints/registry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index bedddcda7..4bb44fca2 100644 --- a/config.py +++ b/config.py @@ -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 diff --git a/endpoints/registry.py b/endpoints/registry.py index 8222212a7..c901eed5b 100644 --- a/endpoints/registry.py +++ b/endpoints/registry.py @@ -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