-
Couldn't load subscription status.
- Fork 109
New configuration reader #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cli/pbm-agent/main.go
Outdated
|
|
||
| mergeOptions(opts, yamlOpts) | ||
| validateOptions(yamlOpts) | ||
| validateOptions(opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of validateOptions is not checked (from errcheck)
| Port: source.Port, | ||
| }) | ||
| } | ||
| source.Client.restoreBackup(msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of source.Client.restoreBackup is not checked (from errcheck)
cli/pbmctl/main.go
Outdated
|
|
||
| const ( | ||
| defaultBackupType = "logical" | ||
| defaultConfigFile = "~/.pbmctl.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultConfigFile is unused (from varcheck)
| Port: defaultMongoDBPort, | ||
| }, | ||
| } | ||
| b, err := yaml.Marshal(wantOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ineffectual assignment to err (from ineffassign)
| Port: defaultMongoDBPort, | ||
| }, | ||
| } | ||
| b, err := yaml.Marshal(wantOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ineffectual assignment to err (from ineffassign)
| Port: "12346", | ||
| }, | ||
| } | ||
| b, err := yaml.Marshal(wantOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ineffectual assignment to err (from ineffassign)
| } | ||
| } | ||
| if resp.IsPrimary { | ||
| s, _ := sources[resp.Replicaset] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should write s := sources[resp.Replicaset] instead of s, _ := sources[resp.Replicaset] (from megacheck)
No description provided.