docs: fix preamble_size.py after whitelist changes

wip-fakessh-exit-status
David Wilson 7 years ago
parent 4d940f08ae
commit 2a786ce146

@ -12,12 +12,9 @@ import mitogen.parent
import mitogen.ssh import mitogen.ssh
import mitogen.sudo import mitogen.sudo
broker = mitogen.master.Broker() router = mitogen.master.Router()
router = mitogen.core.Router(broker)
context = mitogen.master.Context(router, 0) context = mitogen.master.Context(router, 0)
stream = mitogen.ssh.Stream(router, 0, hostname='foo') stream = mitogen.ssh.Stream(router, 0, hostname='foo')
broker.shutdown()
print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),) print 'SSH command size: %s' % (len(' '.join(stream.get_boot_command())),)
print 'Preamble size: %s (%.2fKiB)' % ( print 'Preamble size: %s (%.2fKiB)' % (

Loading…
Cancel
Save