Adjust get_boot_command to match _first_stage change

inspect module includes the staticmethod decorator added by
a8d1dc6730
pull/45/head
David Wilson 8 years ago
parent d1faf5ba1d
commit 88d01c571f

@ -617,7 +617,7 @@ class Stream(mitogen.core.Stream):
def get_boot_command(self):
source = inspect.getsource(self._first_stage)
source = textwrap.dedent('\n'.join(source.strip().split('\n')[1:]))
source = textwrap.dedent('\n'.join(source.strip().split('\n')[2:]))
source = source.replace(' ', '\t')
source = source.replace('CONTEXT_NAME', self.remote_name)
encoded = source.encode('base64').replace('\n', '')

Loading…
Cancel
Save