Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix function get_ordered_tags, add to get_datetime_tags args.plain param #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

itshikanov
Copy link

Run:
/usr/bin/docker run --rm Image_from_commit_85bdf89027bdd22ed162d40117d8f5f28fea23f5 -l user:pass -r https://registry.domain --delete --num 8 --dry-run --order-by-date --debug

Got error:
[debug][funcname]: get_auth_schemes()
Traceback (most recent call last):
File "/registry.py", line 864, in
main_loop(args)
File "/registry.py", line 804, in main_loop
tags_list = get_ordered_tags(registry, image_name, all_tags_list, args.order_by_date)
File "/registry.py", line 729, in get_ordered_tags
tags_date = get_datetime_tags(registry, image_name, tags_list)
TypeError: get_datetime_tags() takes exactly 4 arguments (3 given)
[debug][docker] Auth schemes found:['basic']
Will delete all but 8 last tags

This PR resolve error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants