Adjust get_boot_command to match _first_stage change

inspect module includes the staticmethod decorator added by
a8d1dc6730
This commit is contained in:
David Wilson 2017-09-25 05:46:28 +05:30
parent abfa85d7da
commit 4de321a3b0
1 changed files with 1 additions and 1 deletions

View File

@ -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', '')