fix(style): fix style issues from govet

pull/291/head
Matt Butcher 9 years ago
parent 84146a29cd
commit 9be64e52ed

@ -264,6 +264,7 @@ func (c *Client) DeleteDeployment(name string) (*common.Deployment, error) {
return deployment, nil
}
// PostDeployment posts a deployment objec to the manager service.
func (c *Client) PostDeployment(cfg *common.Configuration) error {
return c.CallService("/deployments", "POST", "post deployment", cfg, nil)
}

@ -134,7 +134,7 @@ func TestGetDeployment(t *testing.T) {
func TestPostDeployment(t *testing.T) {
cfg := &common.Configuration{
[]*common.Resource{
Resources: []*common.Resource{
{
Name: "foo",
Type: "helm:example.com/foo/bar",

@ -38,6 +38,7 @@ func Warning(msg string, v ...interface{}) {
fmt.Fprintf(os.Stdout, msg, v...)
}
// YAML prints an object in YAML format.
func YAML(v interface{}) error {
y, err := yaml.Marshal(v)
if err != nil {

Loading…
Cancel
Save