Skip to content

Commit 9377dc4

Browse files
committed
feat: add new info to phonehome
Format is now more similar to NS8
1 parent d988239 commit 9377dc4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/ns-phonehome/files/phonehome

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,12 @@ data = {
113113
"features": features
114114
}
115115
}
116+
117+
info = {}
118+
for func in dir(inventory):
119+
if func.startswith("info_"):
120+
method = getattr(inventory, func)
121+
info[func.removeprefix('info_')] = method(EUci())
122+
data['facts'].update(info)
123+
116124
print(json.dumps(data))

0 commit comments

Comments
 (0)