forked from TrueCloudLab/certificates
linting and fixing review feedback
This commit is contained in:
parent
7c5e5b2b87
commit
ffff9af323
2 changed files with 4 additions and 2 deletions
|
@ -1135,7 +1135,8 @@ retry:
|
||||||
}
|
}
|
||||||
var check api.SSHCheckPrincipalResponse
|
var check api.SSHCheckPrincipalResponse
|
||||||
if err := readJSON(resp.Body, &check); err != nil {
|
if err := readJSON(resp.Body, &check); err != nil {
|
||||||
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response", u)
|
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response",
|
||||||
|
[]any{u, errs.WithMessage("Failed to parse response from /ssh/check-host endpoint")}...)
|
||||||
}
|
}
|
||||||
return &check, nil
|
return &check, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html"
|
"html"
|
||||||
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
@ -179,7 +180,7 @@ $ step-ca --context=mybiz --password-file ./password.txt
|
||||||
Addr: debugProfAddr,
|
Addr: debugProfAddr,
|
||||||
ReadHeaderTimeout: 15 * time.Second,
|
ReadHeaderTimeout: 15 * time.Second,
|
||||||
}
|
}
|
||||||
srv.ListenAndServe()
|
log.Println(srv.ListenAndServe())
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue