From 12328379b76963db7e03ef87649178bff0c699c6 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 17 Jul 2020 10:02:41 +1000 Subject: [PATCH] gitea-git-repos: update deprecated API path This is updated to "orgs" (with an s) according to [1] [1] https://try.gitea.io/api/swagger#/organization/createOrgRepo Change-Id: I968248a19eec5dbbb492c74286598ac7ecd4aeb8 --- playbooks/roles/gitea-git-repos/library/gitea_create_repos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py b/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py index c323538eb5..73fc93ba58 100755 --- a/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py +++ b/playbooks/roles/gitea-git-repos/library/gitea_create_repos.py @@ -135,7 +135,7 @@ class Gitea(object): 'readme': 'Default', } resp = self.post( - '/api/v1/org/{org}/repos'.format(org=org), + '/api/v1/orgs/{org}/repos'.format(org=org), json=repo_properties) self.log("Created repo:", project['project'])