diff --git a/src/plugins/azgenerator/TemplateAzureCliHelp.ts b/src/plugins/azgenerator/TemplateAzureCliHelp.ts index 68e61c9a3..d305cc248 100644 --- a/src/plugins/azgenerator/TemplateAzureCliHelp.ts +++ b/src/plugins/azgenerator/TemplateAzureCliHelp.ts @@ -89,9 +89,12 @@ function generateWaitCommandHelp(commandGroup, allLongRunCommand) { for(let waitParam of allLongRunCommand) { let name = " - name: Pause executing next line of CLI script until the " + commandGroup + " is successfully " + waitParam + "."; ToMultiLine(name, output, 119, true); - output.push(" text: |-"); - let line = showExampleStr.replace(/ show /g, ' wait ') + " --" + waitParam; - ToMultiLine(line, output, 119, true); + if(!isNullOrUndefined(showExampleStr) && showExampleStr != "") { + output.push(" text: |-"); + let line = showExampleStr.replace(/ show /g, ' wait ') + " --" + waitParam; + ToMultiLine(line, output, 119, true); + } + } output.push("\"\"\""); return output;