cleaning up
This commit is contained in:
1 parent
42cdc720a3
commit
826a41ae64
12 files changed
+98
-175
No files matched your search
+1
-14
@@ -39,7 +39,7 @@ export type AuditEvent = {
|
||||
metadata: Record<string, unknown>;
|
||||
};
|
||||
|
||||
export type CommandKind = "status" | "devs" | "leases" | "inventory" | "wake";
|
||||
export type CommandKind = "devs" | "leases" | "inventory" | "wake";
|
||||
|
||||
export type EnrollTokenStatus = {
|
||||
enroll_token: string;
|
||||
@@ -127,19 +127,6 @@ function buildCommandPayload(kind: CommandKind, query: string): { command: Recor
|
||||
if (kind === "devs") {
|
||||
return { command: { kind: "devs", dev: null, up_only: false } };
|
||||
}
|
||||
if (kind === "status") {
|
||||
return {
|
||||
command: {
|
||||
kind: "status",
|
||||
query: query || null,
|
||||
name: null,
|
||||
ips: [],
|
||||
devs: [],
|
||||
nuds: [],
|
||||
macs: [],
|
||||
},
|
||||
};
|
||||
}
|
||||
if (kind === "leases") {
|
||||
return { command: { kind: "leases", include_state: true } };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user