@ornncompute/cli 1.0.423 → 1.0.425
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
|
@@ -116,10 +116,11 @@ function getEnrollmentHosts(request, id, signal) {
|
|
|
116
116
|
...signal ? { signal } : {}
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function launchEnrollmentRun(request, id, body) {
|
|
119
|
+
function launchEnrollmentRun(request, id, body, signal) {
|
|
120
120
|
return request(`${root}/runs/${encodeURIComponent(id)}/launch`, {
|
|
121
121
|
method: "POST",
|
|
122
|
-
body
|
|
122
|
+
body,
|
|
123
|
+
...signal ? { signal } : {}
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
126
|
function getEnrollmentHost(request, id) {
|
|
@@ -127,10 +128,11 @@ function getEnrollmentHost(request, id) {
|
|
|
127
128
|
method: "GET"
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
|
-
function actOnEnrollmentHost(request, id, body) {
|
|
131
|
+
function actOnEnrollmentHost(request, id, body, signal) {
|
|
131
132
|
return request(`${root}/hosts/${encodeURIComponent(id)}`, {
|
|
132
133
|
method: "PATCH",
|
|
133
|
-
body
|
|
134
|
+
body,
|
|
135
|
+
...signal ? { signal } : {}
|
|
134
136
|
});
|
|
135
137
|
}
|
|
136
138
|
function issueEnrollmentCredential(request, id) {
|
|
@@ -616,10 +616,11 @@ var root = "/v1/orchestrator/enrollment/configurable";
|
|
|
616
616
|
function createEnrollmentRun(request, body2) {
|
|
617
617
|
return request(`${root}/runs`, { method: "POST", body: body2 });
|
|
618
618
|
}
|
|
619
|
-
function launchEnrollmentRun(request, id, body2) {
|
|
619
|
+
function launchEnrollmentRun(request, id, body2, signal) {
|
|
620
620
|
return request(`${root}/runs/${encodeURIComponent(id)}/launch`, {
|
|
621
621
|
method: "POST",
|
|
622
|
-
body: body2
|
|
622
|
+
body: body2,
|
|
623
|
+
...signal ? { signal } : {}
|
|
623
624
|
});
|
|
624
625
|
}
|
|
625
626
|
|