bugfix in auth; mode was not set by config in localhost case

Change-Id: I5349af00d7629ca77de73dd886ba44d6bbc56da0
This commit is contained in:
mpl 2012-11-16 18:12:41 +01:00
parent 03a8e7370b
commit 3117265b61
1 changed files with 2 additions and 2 deletions

View File

@ -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\"")