Skip to content

repositories.list() fails with hub.docker.com image #918

Closed
@tripleawwy

Description

@tripleawwy

Description of the problem, including code/CLI snippet

the current version of the docker image can not handle the function "repositories.list()".
If I update python-gitlab inside the container it works, so please update your hub.docker.com image :).

Traceback (most recent call last):
  File "/scripts/registry-cleaner-script.py", line 91, in <module>
    main()
  File "/scripts/registry-cleaner-script.py", line 87, in main
    delete_tags(git_nr, args.projectid, args.regexp, args.keep, args.time)
  File "/scripts/registry-cleaner-script.py", line 39, in delete_tags
    repositories = project.repositories.list()
  File "/usr/local/lib/python3.7/site-packages/gitlab/base.py", line 81, in __getattr__
    raise AttributeError(name)
AttributeError: repositories

Expected Behavior

to list all repositories of a project

Actual Behavior

throws an exception see code snippet

Specifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions