Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldv_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LDV
ldv_utils
Commits
96130222
Commit
96130222
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add missing --token parameter
parent
d70f8a32
Branches
Branches containing commit
No related tags found
1 merge request
!9
add optional private key and private key password
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ldv_migrate/ldv_migrate/ldv_specification_interface.py
+2
-2
2 additions, 2 deletions
ldv_migrate/ldv_migrate/ldv_specification_interface.py
ldv_migrate/ldv_migrate/migrate_ldvadmin_to_ldvspec.py
+2
-2
2 additions, 2 deletions
ldv_migrate/ldv_migrate/migrate_ldvadmin_to_ldvspec.py
with
4 additions
and
4 deletions
ldv_migrate/ldv_migrate/ldv_specification_interface.py
+
2
−
2
View file @
96130222
...
...
@@ -19,7 +19,7 @@ import datetime
from
urllib.parse
import
urlparse
,
urlunparse
# ==============================================================
# The request header
ATDB
_HEADER
=
{
REQUEST
_HEADER
=
{
'
content-type
'
:
"
application/json
"
,
'
cache-control
'
:
"
no-cache
"
}
...
...
@@ -79,7 +79,7 @@ class LDVSpecInterface():
self
.
host
=
LDV_HOST_PROD
if
not
self
.
host
.
endswith
(
'
/
'
):
self
.
host
+=
'
/
'
self
.
header
=
ATDB
_HEADER
self
.
header
=
REQUEST
_HEADER
self
.
header
[
'
Authorization
'
]
=
f
'
Token
{
token
}
'
self
.
_session
=
None
...
...
This diff is collapsed.
Click to expand it.
ldv_migrate/ldv_migrate/migrate_ldvadmin_to_ldvspec.py
+
2
−
2
View file @
96130222
...
...
@@ -70,8 +70,7 @@ def main():
parser
.
add_argument
(
"
--version
"
,
default
=
False
,
help
=
"
Show current version of this program
"
,
action
=
"
store_true
"
)
parser
.
add_argument
(
"
-v
"
,
"
--verbose
"
,
default
=
False
,
help
=
"
More information at run time.
"
,
action
=
"
store_true
"
)
parser
.
add_argument
(
"
-l
"
,
"
--limit
"
,
default
=
0
,
type
=
int
,
help
=
"
Limit on the number of queries (0 is no limit)
"
,
action
=
"
store
"
)
parser
.
add_argument
(
"
-t
"
,
"
--token
"
,
default
=
"
ad9b37a24380948601257f9c1f889b07a00ac81e
"
,
help
=
"
Token to access the REST API of ldvspec
"
,
action
=
"
store
"
)
parser
.
add_argument
(
"
--host
"
,
nargs
=
"
?
"
,
default
=
'
dev
'
,
help
=
"
The ldv-spec-db host. Presets are
'
dev
'
(default),
'
test
'
,
'
prod
'
, otherwise give a full url like https://sdc.astron.nl:5554/ldvspec/api/v1
"
)
parser
.
add_argument
(
"
--configuration
"
,
default
=
'
~/shared/ldv_migrate.cfg
'
,
...
...
@@ -82,6 +81,7 @@ def main():
# tested with 10.000 results in 90 seconds so # 11 mil. will be at least 28 hours
parser
.
add_argument
(
"
-r
"
,
"
--max_nbr_dps_to_insert_per_request
"
,
default
=
1000
,
type
=
int
,
help
=
"
The number of dataproducts to insert per REST request (0 is no limit)
"
,
action
=
"
store
"
)
parser
.
add_argument
(
"
--token
"
,
default
=
"
ca1a247b2d9ccb556f450e541874e714e6d04eba
"
,
help
=
"
Token for ldvspec
"
)
args
=
parser
.
parse_args
()
...
...
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