fixed validation

This commit is contained in:
ston1th 2020-10-30 19:32:47 +01:00
commit 93d99e29cc

View file

@ -299,7 +299,7 @@ type ServerTemplateOpts struct {
TargetNode string
}
func (o ServerTemplateOpts) Validate(ctx context.Context, c *Client) error {
func (o *ServerTemplateOpts) Validate(ctx context.Context, c *Client) error {
if o.Name == "" {
return errors.New("missing name")
}