Skip to content

Commit

Permalink
Dialogs: print the reason for question in the answerfile (oamg#762)
Browse files Browse the repository at this point in the history
Currently we have 2 reason fields in dialogs
  - one 'generic', for the dialog itself
  - one specific just for the particular user question

The framework now prints only the first one, which in some cases
hides important text connected to the particular question. Printing
both reasons now.
  • Loading branch information
pirat89 authored Mar 7, 2022
1 parent 8d426bb commit 27e29f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions leapp/messaging/answerstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def generate(self, dialogs, answer_file_path):
'# {}\n'.format(' {}.{} '.format(dialog.scope, component.key).center(77, '=')),
_comment_out('Label', component.label),
_comment_out('Description', component.description),
_comment_out('Reason', component.reason),
_comment_out('Type', component.value_type.__name__),
_comment_out('Default', default),
choices,
Expand Down

0 comments on commit 27e29f0

Please sign in to comment.