Skip to content

Commit

Permalink
Merge branch 'release/v0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandaoc-io committed Jun 24, 2020
2 parents 73ef892 + 7cf25ed commit 2ef8dc6
Show file tree
Hide file tree
Showing 446 changed files with 184,156 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/netintcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func networkInterfaceCheck(snmpVersion string, cmd *cobra.Command, args []string
sknchk.Unknown(fmt.Sprintf("Error while Creating SNMP connection : %v", err), "")
}
file.DevicePath = file.GenDeviceDirName(snmpVersion, cmd)
intFilename := cmd.Flag("interface").Value.String() + ".json"
intFilename := strings.ReplaceAll(cmd.Flag("interface").Value.String(), "/", "_") + ".json"

//Check and prepare the index file
indexFileExp, _ := cmd.Flags().GetInt("index-expiration")
Expand Down
2 changes: 1 addition & 1 deletion netint/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func FetchAllDatas(snmpConnection *g.GoSNMP, index string, version string, cmd *
}
if elem == "IfAlias" {
log.Debug("Replace the characters of the alias '|' by '!'")
*networkinterface.IfAlias = strings.Replace(*networkinterface.IfAlias, "|", "!", -1)
*networkinterface.IfAlias = strings.ReplaceAll(*networkinterface.IfAlias, "|", "!")
}
}
networkinterface.Timestamp = (time.Now().Unix())
Expand Down
13 changes: 13 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_others.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows_1.4.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/github.com/mitchellh/mapstructure/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions vendor/github.com/mitchellh/mapstructure/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ef8dc6

Please sign in to comment.