summaryrefslogtreecommitdiff
path: root/gitlab/v4/cli.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-05-31 22:25:59 +0200
committerJohn Villalovos <john@sodarock.com>2022-06-01 08:00:51 -0700
commit5d1486785793b02038ac6f527219801744ee888b (patch)
tree26a92a1a9ab4d604bb67d1d67db017d8d4b0f34e /gitlab/v4/cli.py
parent28cf3c3d392f2f7f55dc142681181e15c702018a (diff)
downloadgitlab-5d1486785793b02038ac6f527219801744ee888b.tar.gz
fix(cli): fix project export download for CLI
Since ac1c619cae6481833f5df91862624bf0380fef67 we delete parent arg keys from the args dict so this has been trying to access the wrong attribute.
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r--gitlab/v4/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index 98430b9..bd6a6a4 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -116,7 +116,7 @@ class GitlabCLI:
def do_project_export_download(self) -> None:
try:
- project = self.gl.projects.get(int(self.args["project_id"]), lazy=True)
+ project = self.gl.projects.get(self.parent_args["project_id"], lazy=True)
export_status = project.exports.get()
if TYPE_CHECKING:
assert export_status is not None