fixed typo
This commit is contained in:
parent
ef3550936f
commit
b06a42d6d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue