We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b911cf1 + 7eb15da commit 43a2187Copy full SHA for 43a2187
1 file changed
cmd/cloud-init-server/metadata_handlers.go
@@ -56,7 +56,7 @@ func MetaDataHandler(smd smdclient.SMDClientInterface, store cistore.Store) http
56
id, err = smd.IDfromIP(ip)
57
if err != nil {
58
log.Print(err)
59
- w.WriteHeader(http.StatusUnprocessableEntity)
+ http.Error(w, "Failed to retrieve node ID from IP address", http.StatusUnprocessableEntity)
60
return
61
} else {
62
log.Printf("xname %s with ip %s found\n", id, ip)
0 commit comments