fix event flag for secret add

This commit is contained in:
Brad Rydzewski 2017-04-18 09:45:25 +02:00
parent 9cc0189f01
commit 15f5b8f414

View file

@ -50,7 +50,7 @@ func secretCreate(c *cli.Context) error {
Name: c.String("name"),
Value: c.String("value"),
Images: c.StringSlice("image"),
Events: c.StringSlice("events"),
Events: c.StringSlice("event"),
}
if len(secret.Events) == 0 {
secret.Events = defaultSecretEvents