Skip to content
Snippets Groups Projects
Unverified Commit 238047ef authored by Max Adamo's avatar Max Adamo
Browse files

added comment

parent df0b1bcd
Branches
Tags v0.7.1
No related merge requests found
...@@ -33,6 +33,7 @@ func init() { ...@@ -33,6 +33,7 @@ func init() {
// serve certificates JSON // serve certificates JSON
func renderJSON(w http.ResponseWriter, req *http.Request) { func renderJSON(w http.ResponseWriter, req *http.Request) {
// content-type currently not working
provider := strings.Split(req.URL.Path, "/")[2] provider := strings.Split(req.URL.Path, "/")[2]
serveFile := fmt.Sprintf("%v/%v/%v.json", webDir, provider, provider) serveFile := fmt.Sprintf("%v/%v/%v.json", webDir, provider, provider)
cmd := exec.Command(jsonConverter, "-p", provider) cmd := exec.Command(jsonConverter, "-p", provider)
...@@ -69,7 +70,7 @@ func renderPage(w http.ResponseWriter, req *http.Request) { ...@@ -69,7 +70,7 @@ func renderPage(w http.ResponseWriter, req *http.Request) {
// trigger puppet // trigger puppet
func triggerPuppet(w http.ResponseWriter, req *http.Request) { func triggerPuppet(w http.ResponseWriter, req *http.Request) {
// content-type is currently not working // content-type currently not working
cmd := exec.Command("/usr/bin/pkill", "-f", "/opt/puppetlabs/puppet/bin/puppet", "--signal", "SIGUSR1") cmd := exec.Command("/usr/bin/pkill", "-f", "/opt/puppetlabs/puppet/bin/puppet", "--signal", "SIGUSR1")
authToken := "BOFH" authToken := "BOFH"
_, ok := req.Header["Authorization"] _, ok := req.Header["Authorization"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment