Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
2faf685b
Commit
2faf685b
authored
Jun 24, 2022
by
Andrey Vertiprahov
Browse files
Fix error when hostname None value.
parent
e7a2ac57
Pipeline
#36629
passed with stages
in 25 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
inv/models/discoveryid.py
View file @
2faf685b
...
...
@@ -116,7 +116,7 @@ class DiscoveryID(Document):
old_macs
=
set
(
m
.
first_mac
for
m
in
o
.
chassis_mac
)
o
.
chassis_mac
=
ranges
o
.
hostname
=
hostname
o
.
hostname_id
=
hostname
.
lower
()
o
.
hostname_id
=
hostname
.
lower
()
if
hostname
else
None
o
.
router_id
=
router_id
old_macs
-=
set
(
m
.
first_mac
for
m
in
o
.
chassis_mac
)
if
old_macs
:
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
e9085231
·
Jun 25, 2022
mentioned in commit
e9085231
mentioned in commit e908523107937d5b6cef899f36bb7caeb0d1c18b
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!6409 (merged)
·
Jun 25, 2022
mentioned in merge request
!6409 (merged)
mentioned in merge request !6409
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment