Change to yaml.dump
Merge pull request #8231 from pass-by-value/yaml_dump_change

Change to yaml.dump