Move code to switch default.
This commit is contained in:
parent
a7f06c765d
commit
b6a5ebcfc9
1 changed files with 2 additions and 1 deletions
|
@ -100,8 +100,9 @@ func (c *Collection) LoadByCertificate(cert *x509.Certificate) (Interface, bool)
|
|||
return c.Load("aws:" + string(provisioner.Name))
|
||||
case TypeGCP:
|
||||
return c.Load("gcp:" + string(provisioner.Name))
|
||||
default:
|
||||
return c.Load(string(provisioner.CredentialID))
|
||||
}
|
||||
return c.Load(string(provisioner.CredentialID))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue