From 3117265b61d29cea0ee7781721551746ad61aaa7 Mon Sep 17 00:00:00 2001 From: mpl Date: Fri, 16 Nov 2012 18:12:41 +0100 Subject: [PATCH] bugfix in auth; mode was not set by config in localhost case Change-Id: I5349af00d7629ca77de73dd886ba44d6bbc56da0 --- pkg/auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 30d4f8bcf..080b7ef4c 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -65,9 +65,9 @@ func FromConfig(authConfig string) (AuthMode, error) { switch authType { case "none": - return None{}, nil + mode = None{} case "localhost": - return Localhost{}, nil + mode = Localhost{} case "userpass": if len(pieces) < 3 { return nil, fmt.Errorf("Wrong userpass auth string; needs to be \"userpass:user:password\"")