Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netbox-awx-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
Anders Harrisson
netbox-awx-plugin
Commits
167123fd
Commit
167123fd
authored
4 months ago
by
Anders Harrisson
Browse files
Options
Downloads
Patches
Plain Diff
Avoid serializing "None" for the MAC Address
parent
57121e71
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#202055
passed
4 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
netbox_awx_plugin/synchronization.py
+2
-2
2 additions, 2 deletions
netbox_awx_plugin/synchronization.py
with
2 additions
and
2 deletions
netbox_awx_plugin/synchronization.py
+
2
−
2
View file @
167123fd
...
...
@@ -71,7 +71,7 @@ class InterfaceSerializer(serializers.BaseSerializer):
ip_addresses
.
append
(
serializer
.
data
)
return
{
"
name
"
:
instance
.
name
,
"
mac
"
:
str
(
instance
.
mac_address
),
"
mac
"
:
str
(
instance
.
mac_address
)
if
instance
.
mac_address
else
None
,
"
ip_addresses
"
:
ip_addresses
}
...
...
@@ -107,7 +107,7 @@ class VMInterfaceSerializer(serializers.BaseSerializer):
ip_addresses
.
append
(
serializer
.
data
)
return
{
"
name
"
:
instance
.
name
,
"
mac
"
:
str
(
instance
.
mac_address
),
"
mac
"
:
str
(
instance
.
mac_address
)
if
instance
.
mac_address
else
None
,
"
ip_addresses
"
:
ip_addresses
}
...
...
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