Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
71ba3962
Commit
71ba3962
authored
3 months ago
by
Erin (Josh) Rigler
Browse files
Options
Downloads
Patches
Plain Diff
Update MetadataFactory.py to force IPV4 (not IPV6)
parent
69254ed8
No related branches found
No related tags found
1 merge request
!371
Update MetadataFactory.py to force IPV4 (not IPV6)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geomagio/metadata/MetadataFactory.py
+3
-0
3 additions, 0 deletions
geomagio/metadata/MetadataFactory.py
with
3 additions
and
0 deletions
geomagio/metadata/MetadataFactory.py
+
3
−
0
View file @
71ba3962
...
@@ -10,6 +10,9 @@ from pydantic import TypeAdapter
...
@@ -10,6 +10,9 @@ from pydantic import TypeAdapter
from
.Metadata
import
Metadata
from
.Metadata
import
Metadata
from
.MetadataQuery
import
MetadataQuery
from
.MetadataQuery
import
MetadataQuery
# Force IPV4 in requests package
requests
.
packages
.
urllib3
.
util
.
connection
.
HAS_IPV6
=
False
# Set the API host and URL for the Geomagnetic Metadata service
# Set the API host and URL for the Geomagnetic Metadata service
GEOMAG_API_HOST
=
os
.
getenv
(
"
GEOMAG_API_HOST
"
,
"
geomag.usgs.gov
"
)
GEOMAG_API_HOST
=
os
.
getenv
(
"
GEOMAG_API_HOST
"
,
"
geomag.usgs.gov
"
)
GEOMAG_API_URL
=
f
"
https://
{
GEOMAG_API_HOST
}
/ws/secure/metadata
"
GEOMAG_API_URL
=
f
"
https://
{
GEOMAG_API_HOST
}
/ws/secure/metadata
"
...
...
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