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
nomad-lab
nomad-FAIR
Commits
7f09b831
Commit
7f09b831
authored
May 12, 2019
by
Markus Scheidgen
Browse files
Removed check for upload path existence. [skip ci]
parent
7c030ad9
Pipeline
#48143
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/client/migration.py
View file @
7f09b831
...
...
@@ -142,8 +142,11 @@ def determine_upload_paths(paths, pattern=None, all=False):
paths
.
append
(
path
)
if
not
exists
:
utils
.
get_logger
(
__name__
).
error
(
'source upload does not exist'
,
source_upload_id
=
upload_id
)
# This does not really matter, to save space we deleted some source
# data after packaging it. the migration will use the packages anyways.
# We just use the full path to communicate the upload_id at the end
# for historical reasons.
path
.
append
(
os
.
path
.
join
(
'/does/not/exist/anymore'
,
upload_id
))
elif
pattern
is
not
None
:
assert
len
(
paths
)
==
1
,
"Can only apply pattern on a single directory."
...
...
Write
Preview
Supports
Markdown
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