Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
pycdstar3
Commits
111ac021
Commit
111ac021
authored
Nov 27, 2019
by
mhellka
Browse files
fix: put fails for new archives with no meta/acl data.
parent
b1d45bb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pycdstar3/cli/commands/put.py
View file @
111ac021
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment