Skip to content

Commit f731fb1

Browse files
committed
fixed hostname assignment in creation
1 parent 03f201e commit f731fb1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- `POST /nodes/{node}/lxc/{id}/status/start` implementation as `PVE.LXC.Start`.
2525
- `POST /nodes/{node}/lxc/{id}/status/stop` implementation as `PVE.LXC.Stop`.
2626

27+
#### Fixed
28+
- `PVE.LXC.Create` hostname assignment.
29+
30+
2731
## [v0.5.0]
2832
### PVE API wrapper
2933
#### Added

pkg/pve/pve_lxc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (s *PVELxcService) Create(req CreateLxcRequest) (CreateLxcResponse, error)
265265
addPayloadValue(p, "ignore-unpack-errors", req.IgnoreUnpackErrors, nil)
266266
//addPayloadValue(p, "lock", req.Lock, nil)
267267
addPayloadValue(p, "memory", req.Memory, nil)
268-
addPayloadValue(p, "hostname", req.Nameserver, nil)
268+
addPayloadValue(p, "hostname", req.Hostname, nil)
269269
if req.Net != nil {
270270
for i := 0; i < len(*req.Net); i++ {
271271
content := (*req.Net)[i].String()

0 commit comments

Comments
 (0)