Fix disabled namespace check
This commit is contained in:
parent
cbf0edb164
commit
4a7b4ad06a
9 changed files with 32 additions and 23 deletions
|
@ -17,12 +17,12 @@ def _expires_after(label_dict, manifest, model):
|
|||
model.set_tags_expiration_for_manifest(manifest, total_seconds)
|
||||
|
||||
|
||||
_LABEL_HANDLES = {
|
||||
_LABEL_HANDLERS = {
|
||||
'quay.expires-after': _expires_after,
|
||||
}
|
||||
|
||||
def apply_label_to_manifest(label_dict, manifest, model):
|
||||
""" Runs the handler defined, if any, for the given label. """
|
||||
handler = _LABEL_HANDLES.get(label_dict['key'])
|
||||
handler = _LABEL_HANDLERS.get(label_dict['key'])
|
||||
if handler is not None:
|
||||
handler(label_dict, manifest, model)
|
||||
|
|
Reference in a new issue