We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d654250 commit 31e733eCopy full SHA for 31e733e
src/commands/createFunctionApp/containerImage/detectDockerfile.ts
@@ -20,7 +20,7 @@ export async function detectDockerfile(context: ICreateFunctionAppContext): Prom
20
context.rootPath = workspacePath;
21
22
//check for host.json location
23
- if (!(await isFunctionProject(workspacePath))) {
+ if (await isFunctionProject(workspacePath)) {
24
const files = (await findFiles(context.workspaceFolder, `*/${hostFileName}`));
25
if (files.length === 0) {
26
throw new Error(localize('noHostJson', 'No host.json file found in the current workspace.'));
0 commit comments