Gitlab Community Edition Instance

Commit 111ac021 authored by mhellka's avatar mhellka
Browse files

fix: put fails for new archives with no meta/acl data.

parent b1d45bb1
......@@ -18,7 +18,7 @@ nothing is committed on remote side and you can simply re-run the same command.
import os
from contextlib import ExitStack
from pycdstar3 import FormUpdate, ApiError
from pycdstar3 import FormUpdate
from pycdstar3.cli import CliError
from pycdstar3.cli._utils import hbytes, kvtype, globtype
import collections
......@@ -198,7 +198,7 @@ def command(ctx, args): # noqa: C901
created = False
if archive == "new":
if not dryrun:
archive = client.create_archive(vault, form=form)["id"]
archive = client.create_archive(vault)["id"]
ctx.print("{}Created new archive: ", dryrun, archive)
created = True
elif not client.exists(vault, archive):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment