mirror of
https://github.com/netbirdio/netbird.git
synced 2025-05-31 15:16:58 +02:00
Fix copying function in posture checks process (#1605)
This commit is contained in:
parent
d65602f904
commit
51fa3c92c5
@ -77,7 +77,7 @@ func (cd ChecksDefinition) Copy() ChecksDefinition {
|
|||||||
Action: geoCheck.Action,
|
Action: geoCheck.Action,
|
||||||
Locations: make([]Location, len(geoCheck.Locations)),
|
Locations: make([]Location, len(geoCheck.Locations)),
|
||||||
}
|
}
|
||||||
copy(cd.GeoLocationCheck.Locations, geoCheck.Locations)
|
copy(cdCopy.GeoLocationCheck.Locations, geoCheck.Locations)
|
||||||
}
|
}
|
||||||
return cdCopy
|
return cdCopy
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user