Skip to content

Commit f8568df

Browse files
authored
fix: Trigger script (#27)
1 parent 81fd05d commit f8568df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ func payload(req REQ) string {
249249
data = fmt.Sprintf(`{"buildnumber":%d,"smallfixnumber":%d}`,
250250
*HostBuildNumber, *HostFixNumber)
251251
case 5: // Guest SN
252+
run_once()
252253
data = strings.ToUpper(*GuestSN)
253254
case 7: // CPU info
254255
data = fmt.Sprintf(`{"cpuinfo":"%s","vcpu_num":%d}`,
@@ -263,6 +264,7 @@ func payload(req REQ) string {
263264
run_once()
264265
data = uuid(host_id())
265266
case 13: // Host SN
267+
run_once()
266268
data = strings.ToUpper(*HostSN)
267269
case 14: // Host MAC
268270
data = strings.ToLower(strings.ReplaceAll(*HostMAC, "-", ":"))

0 commit comments

Comments
 (0)