Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pull_mirror does not provide start() #3269

Copy link
Copy link
@Hokwang

Description

@Hokwang
Issue body actions

Description of the problem, including code/CLI snippet

>>> import gitlab
>>> p = gl.projects.get(100)
>>> mirror = p.pull_mirror.get()
>>> mirror.update_status
'failed'
>>> mirror.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a14638/.venv3.9/lib/python3.9/site-packages/gitlab/base.py", line 133, in __getattr__
    raise AttributeError(message)
AttributeError: 'ProjectPullMirror' object has no attribute 'start'
>>> print(gitlab.__version__)
6.3.0
>>> mirror.sync()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/a14638/.venv3.9/lib/python3.9/site-packages/gitlab/base.py", line 133, in __getattr__
    raise AttributeError(message)
AttributeError: 'ProjectPullMirror' object has no attribute 'sync'

refer : https://docs.gitlab.com/api/project_pull_mirroring/#start-the-pull-mirroring-process-for-a-project

Expected Behavior

mirroring sync

Actual Behavior

can not find method

Specifications

  • python-gitlab version: 6.3.0
  • Gitlab server version (or gitlab.com): 18.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.