handle null inventory value on workflow launch

This commit is contained in:
Jake McDermott 2018-11-19 12:20:42 -05:00
parent 2bc75270e7
commit 13e715aeb9
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

@ -151,7 +151,7 @@ function PromptService (Empty, $filter) {
if (promptData.launchConf.ask_verbosity_on_launch && _.has(promptData, 'prompts.verbosity.value.value')) {
launchData.verbosity = promptData.prompts.verbosity.value.value;
}
if (promptData.launchConf.ask_inventory_on_launch && !Empty(promptData.prompts.inventory.value.id)){
if (promptData.launchConf.ask_inventory_on_launch && _.has(promptData, 'prompts.inventory.value.id')) {
launchData.inventory_id = promptData.prompts.inventory.value.id;
}
if (promptData.launchConf.ask_credential_on_launch){