Add integration reference field to group copy method (#1283)

The group copy method now includes the IntegrationReference field in its output. This change was made to ensure that the integration reference information is retained when a group instance is copied, which previously was not the case.
This commit is contained in:
Bethuel Mmbaga 2023-11-02 16:33:20 +03:00 committed by GitHub
parent c99ae6f009
commit 8cf2866a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ func (g *Group) Copy() *Group {
Name: g.Name, Name: g.Name,
Issued: g.Issued, Issued: g.Issued,
Peers: make([]string, len(g.Peers)), Peers: make([]string, len(g.Peers)),
IntegrationReference: g.IntegrationReference,
} }
copy(group.Peers, g.Peers) copy(group.Peers, g.Peers)
return group return group