Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
NRAO Gitlab has been upgraded to version 17.10
Show more breadcrumbs
ssa
workspaces
Commits
9d80f363
Commit
9d80f363
authored
11 months ago
by
Sam Kagan
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in pf direct-copy error message
parent
1b8f7ff2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1706
merge 2.8.4 to main
,
!1646
Fixed bug in pf direct-copy error message
Pipeline
#15369
passed
11 months ago
Stage: pull-db
Stage: build-packages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cli/executables/pexable/productfetcher/productfetcher/fetchers.py
+5
-8
5 additions, 8 deletions
...utables/pexable/productfetcher/productfetcher/fetchers.py
with
5 additions
and
8 deletions
apps/cli/executables/pexable/productfetcher/productfetcher/fetchers.py
+
5
−
8
View file @
9d80f363
...
...
@@ -26,20 +26,17 @@ three of these:
Each of these is fairly stupid and just tries to fetch its one file, one time.
Retrying is not handled here, the RetryableFileFetcher is used for that.
"""
from
pathlib
import
Path
import
cx_Oracle
import
sqlalchemy
from
pathlib
import
Path
from
pycapo
import
CapoConfig
from
.exceptions
import
(
RetryableFetchError
,
UnsatisfiableConstraint
,
)
from
.interfaces
import
FileFetcher
,
LocatedFile
,
FetchContext
from
.exceptions
import
RetryableFetchError
,
UnsatisfiableConstraint
from
.interfaces
import
FetchContext
,
FileFetcher
,
LocatedFile
from
.locations
import
NgasFile
,
OracleXml
from
.retry
import
retry
# pylint: disable=E0401, E0402, W0221
...
...
@@ -67,7 +64,7 @@ class NgasDirectCopyFileFetcher(FileFetcher):
"""
# ensure that we actually can fetch
if
not
self
.
file
.
can_direct_copy
(
context
):
raise
UnsatisfiableConstraint
(
f
"
Direct copy to
{
self
.
destination
}
is not possible
"
)
raise
UnsatisfiableConstraint
(
f
"
Direct copy to
{
self
.
destination
(
context
)
}
is not possible
"
)
# check the destination
destination
=
context
.
check_and_prepare_destination
(
self
.
file
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment