tox-linters job failing with yaml.representer.RepresenterError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
When using to_yaml/
Downgrading pyyaml to 3.13 fixes the issue when tested locally. On looking further it seems like a regression from https:/
RepresenterError is just of type Exeption[1] and there is nothing to convert objects to string.
I've submitted a PR to revert that patch https:/
[1] https:/
[2]
2020-08-17 10:34:29.999552 | centos-8 | Traceback (most recent call last):
2020-08-17 10:34:29.999566 | centos-8 | File "/home/
2020-08-17 10:34:29.999580 | centos-8 | sys.exit(main())
2020-08-17 10:34:29.999594 | centos-8 | File "/home/
2020-08-17 10:34:29.999609 | centos-8 | matches.
2020-08-17 10:34:29.999623 | centos-8 | File "/home/
2020-08-17 10:34:29.999638 | centos-8 | for child in ansiblelint.
2020-08-17 10:34:29.999664 | centos-8 | File "/home/
2020-08-17 10:34:29.999687 | centos-8 | for child in play_children(
2020-08-17 10:34:29.999703 | centos-8 | File "/home/
2020-08-17 10:34:29.999718 | centos-8 | fail_on_
2020-08-17 10:34:29.999732 | centos-8 | File "/home/
2020-08-17 10:34:29.999746 | centos-8 | **dict(kwargs, fail_on_
2020-08-17 10:34:29.999760 | centos-8 | File "/home/
2020-08-17 10:34:29.999775 | centos-8 | return templar.
2020-08-17 10:34:29.999789 | centos-8 | File "/home/
2020-08-17 10:34:29.999808 | centos-8 | ) for v in variable]
2020-08-17 10:34:29.999822 | centos-8 | File "/home/
2020-08-17 10:34:29.999837 | centos-8 | ) for v in variable]
2020-08-17 10:34:29.999864 | centos-8 | File "/home/
2020-08-17 10:34:29.999896 | centos-8 | disable_
2020-08-17 10:34:29.999925 | centos-8 | File "/home/
2020-08-17 10:34:29.999942 | centos-8 | disable_
2020-08-17 10:34:29.999965 | centos-8 | File "/home/
2020-08-17 10:34:29.999983 | centos-8 | disable_
2020-08-17 10:34:29.999998 | centos-8 | File "/home/
2020-08-17 10:34:30.000014 | centos-8 | res = j2_concat(rf)
2020-08-17 10:34:30.000032 | centos-8 | File "<template>", line 13, in root
2020-08-17 10:34:30.000048 | centos-8 | File "/home/
2020-08-17 10:34:30.000064 | centos-8 | transformed = yaml.dump(a, Dumper=
2020-08-17 10:34:30.000079 | centos-8 | File "/home/
2020-08-17 10:34:30.000094 | centos-8 | return dump_all([data], stream, Dumper=Dumper, **kwds)
2020-08-17 10:34:30.000109 | centos-8 | File "/home/
2020-08-17 10:34:30.000125 | centos-8 | dumper.
2020-08-17 10:34:30.000139 | centos-8 | File "/home/
2020-08-17 10:34:30.000155 | centos-8 | node = self.represent_
2020-08-17 10:34:30.000170 | centos-8 | File "/home/
2020-08-17 10:34:30.000185 | centos-8 | node = self.yaml_
2020-08-17 10:34:30.000200 | centos-8 | File "/home/
2020-08-17 10:34:30.000216 | centos-8 | raise RepresenterErro
2020-08-17 10:34:30.000243 | centos-8 | yaml.represente
2020-08-17 10:34:30.000257 | centos-8 | [WARNING]: Falling back to Ansible unique filter as Jinja2 one failed: 'pool'
Fix proposed to branch: master /review. opendev. org/747139
Review: https:/