Skip to content

Commit

Permalink
feat(pkg): add init command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Jun 16, 2023
1 parent c354650 commit 5b60e3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/hetzner/hetzner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func (h *Hetzner) GetByName(ctx context.Context, name string) (interface{}, erro
}

func (h *Hetzner) Init(ctx context.Context) error {
_, _, err := h.client.Server.List(ctx, hcloud.ServerListOpts{})
if err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit 5b60e3b

Please sign in to comment.