Skip to content

Commit

Permalink
Fix pointer in machine save call
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed May 31, 2022
1 parent a09633e commit 5ecfbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
2 changes: 1 addition & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5ecfbba

Please sign in to comment.