Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cli/bpmetadata/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,12 @@ func CreateBlueprintDisplayMetadata(bpPath string, bpDisp, bpCore *BlueprintMeta
bpDisp.Spec.Info.Source = bpCore.Spec.Info.Source
buildUIInputFromVariables(bpCore.Spec.Interfaces.Variables, bpDisp.Spec.Ui.Input)

existingInput := proto.Clone(bpCore.Spec.Ui.Input).(*BlueprintUIInput)
existingInput := func() *BlueprintUIInput {
if bpCore.Spec.Ui != nil && bpCore.Spec.Ui.Input != nil {
return proto.Clone(bpCore.Spec.Ui.Input).(*BlueprintUIInput)
}
return &BlueprintUIInput{}
}()
// Merge existing data (if any) into the newly generated UI Input
mergeExistingAltDefaults(bpDisp.Spec.Ui.Input, existingInput)

Expand Down
Loading