Merge branch 'main' into oidc-refactoring

This commit is contained in:
Juan Font
2022-08-09 20:29:02 +02:00
committed by GitHub
13 changed files with 86 additions and 67 deletions

View File

@@ -551,7 +551,7 @@ func (h *Headscale) findOrCreateNewNamespaceForOIDCCallback(
namespaceName string,
) (*Namespace, error) {
namespace, err := h.GetNamespace(namespaceName)
if errors.Is(err, errNamespaceNotFound) {
if errors.Is(err, ErrNamespaceNotFound) {
namespace, err = h.CreateNamespace(namespaceName)
if err != nil {