Skip to content

Commit

Permalink
fix: don't sanitize function app twice
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Sep 26, 2019
1 parent d773c4e commit 3408bf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/features/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ module.exports = async function() {

Config.set("functionApp", functionApp);

saveWorkspace({ functionApp });
saveWorkspace({
functionApp: {
hostName: functionApp.hostName,
id: functionApp.id,
name: functionApp.name || functionAppName
}
});

// init functions projects
return (await require("./init"))();
Expand Down
6 changes: 4 additions & 2 deletions src/features/functions/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = async function() {
const storage: AzureStorage = Config.get("storage");
debug(`using storage ${chalk.green(storage.name)}`);

const functionAppName = sanitize(functionApp.name);
const functionAppName = functionApp.name;

let functionAppDirectory = `./functions`;

Expand All @@ -47,7 +47,9 @@ module.exports = async function() {

saveWorkspace({
functionApp: {
folder: functionAppDirectory
folder: functionAppDirectory,
id: functionApp.id,
name: functionApp.name
}
});

Expand Down

0 comments on commit 3408bf8

Please sign in to comment.