mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Fix pointer in machine save call
This commit is contained in:
parent
a09633e859
commit
5ecfbbaf5d
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ func (s *IntegrationCLITestSuite) SetupTest() {
|
|||
}
|
||||
|
||||
headscaleOptions := &dockertest.RunOptions{
|
||||
Name: "headscale",
|
||||
Name: "headscale-cli",
|
||||
Mounts: []string{
|
||||
fmt.Sprintf("%s/integration_test/etc:/etc/headscale", currentPath),
|
||||
},
|
||||
|
|
|
@ -772,7 +772,7 @@ func (h *Headscale) RegisterMachine(machine Machine,
|
|||
|
||||
machine.IPAddresses = ips
|
||||
|
||||
if err := h.db.Save(machine).Error; err != nil {
|
||||
if err := h.db.Save(&machine).Error; err != nil {
|
||||
return nil, fmt.Errorf("failed register(save) machine in the database: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue