Skip to content

Conversation

smithers1221
Copy link
Contributor

No description provided.

import (
"errors"
"encoding/json"
// "errors"
Copy link
Member

Choose a reason for hiding this comment

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

remove this

cli/cmd/root.go Outdated
return err
}
runCmds.appID = app.ID
} else {
Copy link
Member

Choose a reason for hiding this comment

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

else if appType == "kots" {

Name: shipReleaseChannel.Name,
}
activeChannels = append(activeChannels, activeChannel)

Copy link
Member

Choose a reason for hiding this comment

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

extra newline

}

func (c *Client) UpdateCollectorName(appID string, specID string, name string) (interface{}, error) {

Copy link
Member

Choose a reason for hiding this comment

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

extra newline

return &releaseInfo, nil
}

var updateKotsRelease = `
Copy link
Member

Choose a reason for hiding this comment

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

is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh I could, that had been the intention - I set the variable then just pasted the mutation directly into the UpdateRelease function. . will fix to as originally intended.

Copy link
Member

@emosbaugh emosbaugh left a comment

Choose a reason for hiding this comment

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

looks like make test is failing

7.50s$ make test
go test ./cli/test
# github.com/replicatedhq/replicated/client
client/collector.go:12:63: undefined: appType
FAIL	github.com/replicatedhq/replicated/cli/test [build failed]
make: *** [test] Error 2

@smithers1221
Copy link
Contributor Author

yep - got over eager in deleting code to strip down to just the changes pertaining to the 'release' command. fixed the above, tests passing now.

@smithers1221 smithers1221 merged commit 1940996 into master Sep 16, 2019
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