Skip to content

Conversation

tanmayja
Copy link
Contributor

No description provided.

pkg/utils.go Outdated
return networkIPs, nil
}

func (initp *InitParams) getRackIDFromVolume(hostPath string, isPodRestart bool) (int, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually the absolute filePath not hostPath. Change the comments and all below accordingly.

Suggested change
func (initp *InitParams) getRackIDFromVolume(hostPath string, isPodRestart bool) (int, error) {
func (initp *InitParams) getRackIDFromVolume(filePath string, isPodRestart bool) (int, error) {

Copy link
Contributor

@abhishekdwivedi3060 abhishekdwivedi3060 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the Go-lint failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants