Ubuntu Pastebin

Paste from rog at Thu, 30 Nov 2017 12:44:36 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% git diff
diff --git a/provider/lxd/provider.go b/provider/lxd/provider.go
index 29cc064..e9b38b9 100644
--- a/provider/lxd/provider.go
+++ b/provider/lxd/provider.go
@@ -233,14 +233,14 @@ func (p *environProvider) validateCloudSpec(spec environs.CloudSpec) (local bool
 			return false, errors.Trace(err)
 		}
 	}
-	switch authType := spec.Credential.AuthType(); authType {
-	case cloud.CertificateAuthType:
-		if _, _, ok := getCerts(spec); !ok {
-			return false, errors.NotValidf("certificate credentials")
-		}
-	default:
-		return false, errors.NotSupportedf("%q auth-type", authType)
-	}
+//	switch authType := spec.Credential.AuthType(); authType {
+//	case cloud.CertificateAuthType:
+//		if _, _, ok := getCerts(spec); !ok {
+//			return false, errors.NotValidf("certificate credentials")
+//		}
+//	default:
+//		return false, errors.NotSupportedf("%q auth-type", authType)
+//	}
 	return local, nil
 }
Download as text