@ornncompute/cli 1.0.298 → 1.0.300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1044,10 +1044,12 @@ async function listStaffVirtualMachines(request, input, signal) {
|
|
|
1044
1044
|
let cursor = input.cursor;
|
|
1045
1045
|
const seen = new Set(cursor ? [cursor] : []);
|
|
1046
1046
|
for (; ; ) {
|
|
1047
|
-
const query = new URLSearchParams(
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1047
|
+
const query = new URLSearchParams();
|
|
1048
|
+
if (input.node_ids)
|
|
1049
|
+
query.set("node_ids", input.node_ids.join(","));
|
|
1050
|
+
else
|
|
1051
|
+
query.set("reservation_id", input.reservation_id);
|
|
1052
|
+
query.set("limit", String(input.limit ?? 500));
|
|
1051
1053
|
if (cursor)
|
|
1052
1054
|
query.set("cursor", cursor);
|
|
1053
1055
|
const page = await request(`/v1/staff/virtual-machines?${query}`, {
|