Skip to content

Commit

Permalink
update hw-mac to /hw-deviceid
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaitanyaSingla committed Jan 14, 2025
1 parent 6182921 commit 6dc96f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deviceStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"strconv"
"time"
"strings"

"github.com/xmidt-org/webpa-common/v2/convey"
"github.com/xmidt-org/webpa-common/v2/device"
Expand Down Expand Up @@ -37,7 +36,7 @@ func statusMetadata(d device.Interface) map[string]string {
metadata["/compliance"] = convey.MissingFields.String()
}

metadata["hw-mac"] = strings.TrimPrefix(string(d.ID()), "mac:")
metadata["/hw-deviceid"] = string(d.ID())
return metadata
}

Expand Down

0 comments on commit 6dc96f0

Please sign in to comment.