parent
1de1d73ca3
commit
981f47454a
@ -1,18 +0,0 @@ |
||||
#! /usr/bin/env python |
||||
|
||||
from typing import Union, List |
||||
|
||||
|
||||
class FilterModule(object): |
||||
def filters(self): |
||||
return { |
||||
'besu_opts_format': self.besuOptsFormat, |
||||
} |
||||
|
||||
def besuOptsFormat(self, besu_env_opts: Union[str, List[str]]): |
||||
if isinstance(besu_env_opts, str): |
||||
besu_env_opts = besu_env_opts.split() |
||||
|
||||
escaped_besu_env_opts = [item.replace('"', '\\"') for item in besu_env_opts] |
||||
|
||||
return f'''"{'" "'.join(escaped_besu_env_opts)}"''' |
Loading…
Reference in new issue