Project

General

Profile

Actions

action #176973

closed

Allow block style for items in yaml SCHEDULE size:s

Added by lmanfredi 18 days ago. Updated 15 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Support
Target version:
Start date:
2025-02-11
Due date:
2025-02-26
% Done:

0%

Estimated time:

Description

Found a strange behavior when try to list items in SCHEDULE using block style instead of a single line in yaml :
it seems that the last item is not read correctly and cause an error.
This works fine:

SCHEDULE: yam/agama/boot_agama,yam/agama/agama_auto,installation/grub_test,installation/first_boot,yam/validate/validate_first_user,console/verify_separate_home

but this not:

SCHEDULE: >
  yam/agama/boot_agama
  yam/agama/agama_auto
  installation/grub_test
  installation/first_boot
  yam/validate/validate_product
  yam/validate/validate_first_user
  console/verify_separate_home

There is a workaround proposed by @nicksinger and @tinita by >-:

SCHEDULE: >-
  ...

See:

Actions #1

Updated by okurz 18 days ago

  • Status changed from New to In Progress
  • Assignee set to nicksinger
  • Target version set to Ready
Actions #2

Updated by tinita 18 days ago

For more details: block style is actually already allowed.
> is the folded block style, which joins all lines together with spaces.
The problem is the trailing line break at the end, which is removed by using the chomp operator >-.
https://www.yaml.info/learn/quote.html#chomp

Actions #3

Updated by openqa_review 17 days ago

  • Due date set to 2025-02-26

Setting due date based on mean cycle time of SUSE QE Tools

Actions #4

Updated by livdywan 16 days ago

  • Subject changed from Allow block style for items in yaml SCHEDULE to Allow block style for items in yaml SCHEDULE size:s
Actions #5

Updated by nicksinger 15 days ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF