Skip to content

Commit

Permalink
fix gosec issues
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Feb 8, 2022
1 parent 2dbf4ce commit 684f108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func parseAppConfig(path string) (conf config.Config) {
conf = config.Config{}

log.WithField("path", path).Infof("reading configuration from file %v", path)
/* #nosec */
if data, err := ioutil.ReadFile(path); err == nil {
configRaw = data
} else {
Expand Down
3 changes: 2 additions & 1 deletion manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func (m *KubePoolManager) startupApply() {
}

m.nodePatchStatus = map[string]bool{}
for _, node := range nodeList.Items {
for _, row := range nodeList.Items {
node := row
m.nodePatchStatus[node.Name] = true
m.applyNode(&node)
}
Expand Down

0 comments on commit 684f108

Please sign in to comment.