Page MenuHomePhabricator
Paste P10326

pyyaml mystery
ActivePublic

Authored by Andrew on Thu, Feb 6, 9:48 PM.
>>> testdict
{'role::puppetmaster::standalone::autosign': 'True', 'role::puppetmaster::standalone::command_broadcast': 'false', 'role::puppetmaster::standalone::puppetdb_host': 'blahblah', 'role::puppetmaster::standalone::git_sync_minutes': '11', 'role::labs::lvm::mnt::mount_point': '/arbitrarier'}
>>>
>>>
>>> yaml.dump(testdict)
"{'role::labs::lvm::mnt::mount_point': /arbitrarier, 'role::puppetmaster::standalone::autosign': 'True',\n 'role::puppetmaster::standalone::command_broadcast': 'false', 'role::puppetmaster::standalone::git_sync_minutes': '11',\n 'role::puppetmaster::standalone::puppetdb_host': blahblah}\n"

Event Timeline

Andrew created this paste.Thu, Feb 6, 9:48 PM