Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #151 from f5yacobucci/govet
Browse files Browse the repository at this point in the history
Fix govet errors in f5router.go
  • Loading branch information
f5yacobucci committed Apr 4, 2018
2 parents bfb362a + c387a19 commit 927817e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/RELEASE-NOTES.rst
Expand Up @@ -10,6 +10,7 @@ Added controller name and version to the metadata of certain BIG-IP LTM resource

Bug Fixes
`````````
* :issues:`150` - Fix go vet lock copy error

v1.1.1
------
Expand Down
4 changes: 2 additions & 2 deletions f5router/f5router.go
Expand Up @@ -591,7 +591,7 @@ func initPartitionData(pm bigipResources.PartitionMap, partition string) {
}

// Populates a data group from the mutexBindIDRouteURIPlanNameMap
func populateBrokerDataGroup(brokerData mutexBindIDRouteURIPlanNameMap) map[string]*bigipResources.InternalDataGroupRecord {
func populateBrokerDataGroup(brokerData *mutexBindIDRouteURIPlanNameMap) map[string]*bigipResources.InternalDataGroupRecord {
dg := make(map[string]*bigipResources.InternalDataGroupRecord)

brokerData.lock.Lock()
Expand Down Expand Up @@ -634,7 +634,7 @@ func (r *F5Router) createResources() bigipResources.PartitionMap {

dataGroups := make(map[string]map[string]*bigipResources.InternalDataGroupRecord)
if r.c.BrokerMode {
brokerInternalDataGroup := populateBrokerDataGroup(r.bindIDRouteURIPlanNameMap)
brokerInternalDataGroup := populateBrokerDataGroup(&r.bindIDRouteURIPlanNameMap)
dataGroups[BrokerDataGroupName] = brokerInternalDataGroup
}
dataGroups[InternalDataGroupName] = r.internalDataGroup
Expand Down

0 comments on commit 927817e

Please sign in to comment.