From 93d99e29cc728100ec8eb290e2063330a5396e0d Mon Sep 17 00:00:00 2001 From: ston1th Date: Fri, 30 Oct 2020 19:32:47 +0100 Subject: [PATCH] fixed validation --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 466f1a9..d925d9d 100644 --- a/server.go +++ b/server.go @@ -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") }