def set_config(cls, parser): cls.config = parser.parse_args() if cls.config.hypervisor == 'firecracker': module_base = os.path.join(os.path.realpath(os.path.dirname(__file__)), '..') cls.config.run_script = os.path.join(module_base, "..", "..", "scripts", "firecracker.py") cls.config.host = '172.16.0.2' cls._client = client.Client(cls.config)
def set_config(cls, parser): cls.config = parser.parse_args() cls._client = client.Client(cls.config)