tpo.py fails with an AttributeError exception
i tried to run tpo.py without arguments since i don't have the magic configuration file we expect in tpo/tpa/team#40717 (comment 2796985):
exec { 'onionprobe-refresh-config':
command => '/usr/share/doc/onionprobe/examples/tpo.py /srv/puppet.torproject.org/puppet-facts/onionbalancev3-services.yaml /etc/onionprobe/tpo.yaml',
creates => '/etc/onionprobe/tpo.yaml',
user => 'root',
}
file { '/etc/onionprobe/tpo.yaml', # or tor.yaml if we don't mind overwriting a file shipped by the package
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0644',
notify => Service['onionprobe'], # defined elsewhere together with the package and the /etc/default/onionprobe config
}
unfortunately, it just crashes:
root@hetzner-nbg1-02:~# /usr/share/onionprobe/examples/tpo.py
Traceback (most recent call last):
File "/usr/share/onionprobe/examples/tpo.py", line 161, in <module>
instance.build_onionprobe_config()
File "/usr/share/onionprobe/examples/tpo.py", line 132, in build_onionprobe_config
self.config['shuffle'] = False
AttributeError: 'TPOSites' object has no attribute 'config'
boom! boom! whoohoo!