Skip to content

Commit

Permalink
Add more IPMI params available though -x,-c
Browse files Browse the repository at this point in the history
Closes #48
  • Loading branch information
michaeljs1990 committed Feb 26, 2020
1 parent ef143b7 commit 91accf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions collins/commands/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func fieldToAssetStruct(field string, asset collins.Asset) string {
return asset.Base.Serial
case "ipmi_address":
return asset.IPMI.Address
case "ipmi_password":
return asset.IPMI.Password
case "ipmi_username":
return asset.IPMI.Username
case "ip_address":
return emptyOrValue(len(asset.Addresses), func() string {
ips := []string{}
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ require (
gopkg.in/tumblr/go-collins.v0 v0.0.0-20190208222215-7e5500a55e4d
gopkg.in/yaml.v2 v2.2.2
)

go 1.13

0 comments on commit 91accf8

Please sign in to comment.