Skip to content

Commit

Permalink
Merge pull request #42 from octu0/topic-handle-maintenance-event
Browse files Browse the repository at this point in the history
handle maintenance-event
  • Loading branch information
salrashid123 authored Jun 3, 2024
2 parents 93d1da1 + 6706829 commit 62cc184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file added gce_metadata_server
Binary file not shown.
2 changes: 2 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,8 @@ func (h *MetadataServer) computeMetadatav1InstanceKeyHandler(w http.ResponseWrit
res = []byte(h.Claims.ComputeMetadata.V1.Instance.Zone)
case "machine-type":
res = []byte(h.Claims.ComputeMetadata.V1.Instance.MachineType)
case "maintenance-event":
res = []byte(h.Claims.ComputeMetadata.V1.Instance.MaintenanceEvent)
case "tags":
res, err = json.Marshal(h.Claims.ComputeMetadata.V1.Instance.Tags)
if err != nil {
Expand Down

0 comments on commit 62cc184

Please sign in to comment.