Adjust get_boot_command to match _first_stage change

inspect module includes the staticmethod decorator added by
a8d1dc6730
wip-fakessh-exit-status
David Wilson 7 years ago
parent abfa85d7da
commit 4de321a3b0

@ -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