Skip to content
Snippets Groups Projects
Commit 0c6db01f authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Create IOC repositories with same path as name

GitLab now accepts "." in the path

JIRA INFRA-1230 #action In Progress
parent a89b002f
No related branches found
No related tags found
No related merge requests found
......@@ -170,12 +170,11 @@ def create_ioc_repository(project_name):
"accept": "application/json",
"private-token": os.environ.get("GL_ACCESS_TOKEN"),
}
# The repository path can't contain "."
data = {
"namespace_id": current_app.config["IOC_REPOSITORY_GROUP_ID"],
"visibility": current_app.config["IOC_REPOSITORY_VISIBILITY"],
"name": project_name,
"path": project_name.lower().replace(".", "_"),
"path": project_name,
}
response = requests.post(api_url + "/projects", headers=headers, json=data)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment