From 885c37e536ad69b98a1ac54c9d786eac181be236 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 30 Dec 2015 13:05:23 +0100 Subject: [PATCH] Use accessor Signed-off-by: David Gageot --- libmachine/check/check.go | 2 +- libmachine/libmachine.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmachine/check/check.go b/libmachine/check/check.go index 1c9261f783..8ec296729e 100644 --- a/libmachine/check/check.go +++ b/libmachine/check/check.go @@ -58,7 +58,7 @@ func (mcc *MachineConnChecker) Check(h *host.Host, swarm bool) (string, *auth.Op return "", &auth.Options{}, fmt.Errorf("Error parsing URL: %s", err) } - authOptions := h.HostOptions.AuthOptions + authOptions := h.AuthOptions() if err := checkCert(u.Host, authOptions); err != nil { if swarm { diff --git a/libmachine/libmachine.go b/libmachine/libmachine.go index 24bde9448b..1860ffd927 100644 --- a/libmachine/libmachine.go +++ b/libmachine/libmachine.go @@ -81,7 +81,7 @@ func (api *Client) NewHost(driver drivers.Driver) (*host.Host, error) { // Create is the wrapper method which covers all of the boilerplate around // actually creating, provisioning, and persisting an instance in the store. func (api *Client) Create(h *host.Host) error { - if err := cert.BootstrapCertificates(h.HostOptions.AuthOptions); err != nil { + if err := cert.BootstrapCertificates(h.AuthOptions()); err != nil { return fmt.Errorf("Error generating certificates: %s", err) }