Skip to content

Commit 99d2aef

Browse files
committed
Use getBackend in createRollout
1 parent 86a3138 commit 99d2aef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/apphosting/rollout.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as poller from "../operation-poller";
1313
import { logBullet, sleep } from "../utils";
1414
import { apphostingOrigin, consoleOrigin } from "../api";
1515
import { DeepOmit } from "../metaprogramming";
16-
import { getBackendForAmbiguousLocation, getBackendForLocation } from "./backend";
16+
import { getBackendForAmbiguousLocation, getBackendForLocation, getBackend } from "./backend";
1717

1818
const apphostingPollerOptions: Omit<poller.OperationPollerOptions, "operationResourceName"> = {
1919
apiOrigin: apphostingOrigin(),
@@ -38,10 +38,9 @@ export async function createRollout(
3838
): Promise<void> {
3939
let backend: apphosting.Backend;
4040
if (location === "-" || location === "") {
41-
backend = await getBackendForAmbiguousLocation(
41+
backend = await getBackend(
4242
projectId,
4343
backendId,
44-
"Please select the location of the backend you'd like to roll out:",
4544
force,
4645
);
4746
location = apphosting.parseBackendName(backend.name).location;

0 commit comments

Comments
 (0)