From 8ce8218e2fb155c933946d9959a9b53f6a905d21 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 12 May 2016 17:43:18 +0200 Subject: ProjectFile: file_path is required for deletion --- gitlab/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 53f23c1..df97157 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1226,7 +1226,7 @@ class ProjectFile(GitlabObject): requiredCreateAttrs = ['file_path', 'branch_name', 'content', 'commit_message'] optionalCreateAttrs = ['encoding'] - requiredDeleteAttrs = ['branch_name', 'commit_message'] + requiredDeleteAttrs = ['branch_name', 'commit_message', 'file_path'] getListWhenNoId = False shortPrintAttr = 'file_path' getRequiresId = False -- cgit v1.2.1