mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-23 14:28:51 +01: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,
|
||||
Locations: make([]Location, len(geoCheck.Locations)),
|
||||
}
|
||||
copy(cd.GeoLocationCheck.Locations, geoCheck.Locations)
|
||||
copy(cdCopy.GeoLocationCheck.Locations, geoCheck.Locations)
|
||||
}
|
||||
return cdCopy
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user