Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 6398bbf

Browse files
authored
attempt to fix introspection test failure (#422)
1 parent 47ff16d commit 6398bbf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/commands/deployment/onboard.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,16 @@ export const setConfiguration = (
121121
): boolean => {
122122
try {
123123
const data = readYaml<ConfigYaml>(defaultConfigFile());
124-
data.introspection!.azure!.account_name = storageAccountName;
125-
data.introspection!.azure!.table_name = storageTableName;
124+
if (!data.introspection) {
125+
data.introspection = {
126+
azure: {}
127+
};
128+
} else if (!data.introspection.azure) {
129+
data.introspection.azure = {};
130+
}
131+
132+
data.introspection.azure!.account_name = storageAccountName;
133+
data.introspection.azure!.table_name = storageTableName;
126134
const jsonData = yaml.safeDump(data);
127135
logger.verbose(jsonData);
128136
fs.writeFileSync(defaultConfigFile(), jsonData);

0 commit comments

Comments
 (0)