Commit 4de321a3 authored by David Wilson's avatar David Wilson

Adjust get_boot_command to match _first_stage change

inspect module includes the staticmethod decorator added by
a8d1dc67304d678e9e94ebb64be259e958181b63
parent abfa85d7
......@@ -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', '')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment