diff --git a/releasenotes/notes/scenario-runner-templatesdebug-5ee5e2447cff770a.yaml b/releasenotes/notes/scenario-runner-templatesdebug-5ee5e2447cff770a.yaml new file mode 100644 index 00000000..b3257e4a --- /dev/null +++ b/releasenotes/notes/scenario-runner-templatesdebug-5ee5e2447cff770a.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The fully generated YAML file is printed when the verbose mode is enabled. diff --git a/sahara_tests/scenario/utils.py b/sahara_tests/scenario/utils.py index eff6adce..3f06cf1a 100644 --- a/sahara_tests/scenario/utils.py +++ b/sahara_tests/scenario/utils.py @@ -125,6 +125,12 @@ def generate_config(files, template_variables, auth_values, verbose_run): else: raise ValueError('Job flow exist') config['credentials'].update(auth_values['credentials']) + if verbose_run: + six.print_("Generated configuration:\n%s" % ( + yaml.safe_dump(config, + allow_unicode=True, + default_flow_style=False)), + flush=True) return config