fixed typo

This commit is contained in:
ston1th 2020-06-01 14:37:32 +02:00
commit b06a42d6d1

View file

@ -232,7 +232,7 @@ func (c *ServerClient) CreateFromTemplate(ctx context.Context, opts ServerTempla
}
body := opts.body()
body["newid"] = nextid
if tempnode != opts.TargetNode {
if opts.TargetNode != "" && tempnode != opts.TargetNode {
body["target"] = opts.TargetNode
url = NewURL(opts.TargetNode, nextid)
} else {