Commit 9be64e52 authored by Matt Butcher's avatar Matt Butcher

fix(style): fix style issues from govet

parent 84146a29
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment