diff --git a/cmd/cloud-init-server/handlers.go b/cmd/cloud-init-server/handlers.go index 1ae445d..ed8c317 100644 --- a/cmd/cloud-init-server/handlers.go +++ b/cmd/cloud-init-server/handlers.go @@ -88,7 +88,6 @@ func (h CiHandler) AddEntry(w http.ResponseWriter, r *http.Request) { render.JSON(w, r, ci.Name) } - // AddUserEntry godoc // @Summary Add a new user-data entry in specified cloud-init data // @Description Add a new user-data entry in specified cloud-init data @@ -136,7 +135,6 @@ func (h CiHandler) AddUserEntry(w http.ResponseWriter, r *http.Request) { render.JSON(w, r, ci.Name) } - // GetEntry godoc // @Summary Get a cloud-init entry // @Description Get a cloud-init entry @@ -205,7 +203,7 @@ func (h CiHandler) getData(id string, dataKind ciDataKind, w http.ResponseWriter var data *map[string]interface{} switch dataKind { case UserData: - w.Write([]byte("#cloud-config\n")) + w.Write([]byte("## template:jinja\n#cloud-config\n")) data = &ci.CIData.UserData case MetaData: data = &ci.CIData.MetaData