This commit is contained in:
William Banfield
2022-10-25 10:03:20 -04:00
parent c755d03611
commit 241be64da5

View File

@@ -56,8 +56,12 @@ func NewDockerInfrastructureData(m Manifest) (InfrastructureData, error) {
Instances: make(map[string]InstanceData), Instances: make(map[string]InstanceData),
Network: netAddress, Network: netAddress,
} }
for name := range m.Nodes { // gosec complains about the following line, stating that the second
ifd.Instances[name] = InstanceData{ //nolint: gosec // param in the range expression should be _- i.e. k, _ := range... -
// however, there is no second param in the range here so this seems
// like a false positive.
for name := range m.Nodes { //nolint: gosec
ifd.Instances[name] = InstanceData{
IPAddress: ipGen.Next(), IPAddress: ipGen.Next(),
} }
} }