Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mock-cheops
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chephren
mock-cheops
Commits
0c8cc106
Unverified
Commit
0c8cc106
authored
1 year ago
by
REIG Julien
Browse files
Options
Downloads
Patches
Plain Diff
fix internal url
parent
fcfd16a3
No related branches found
No related tags found
1 merge request
!12
Fix: Connection between nodes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/http_utils.py
+6
-6
6 additions, 6 deletions
utils/http_utils.py
with
6 additions
and
6 deletions
utils/http_utils.py
+
6
−
6
View file @
0c8cc106
...
...
@@ -3,16 +3,16 @@ import sys
from
urllib.parse
import
urlparse
import
requests
from
models.command
import
Command
from
models.command
import
Command
from
models.resource
import
Resource
from
utils.database_utils
import
insert_command_queue
,
insert_resource_queue
nodes
=
{
'
http://localhost:3000/
'
:
'
node1
'
,
'
http://localhost:3001/
'
:
'
node2
'
,
'
http://localhost:3002/
'
:
'
node3
'
,
'
http://localhost:3003/
'
:
'
node4
'
,
'
http://localhost:3000/
'
:
'
http://node1:3000/
'
,
'
http://localhost:3001/
'
:
'
http://node2:3000/
'
,
'
http://localhost:3002/
'
:
'
http://node3:3000/
'
,
'
http://localhost:3003/
'
:
'
http://node4:3000/
'
,
}
...
...
@@ -22,7 +22,7 @@ def normalize_url(url: str, inter: bool = False):
if
inter
:
url
=
nodes
.
get
(
url
,
None
)
if
url
is
None
:
print
(
'
normalize intern
'
,
address
,
e
,
file
=
sys
.
stderr
)
print
(
'
normalize intern
'
,
url
,
file
=
sys
.
stderr
)
return
return
url
else
:
...
...
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