fixed validation
This commit is contained in:
parent
3c9a99682e
commit
93d99e29cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue