mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-04 06:03:12 +00:00
fix: move command param to kwargs
This commit is contained in:
parent
f7d54c8b89
commit
9c61ae1f9d
@ -16,7 +16,14 @@ logger = get_custom_logger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class NomosCli:
|
class NomosCli:
|
||||||
def __init__(self, command=""):
|
def __init__(self, **kwargs):
|
||||||
|
if "command" not in kwargs:
|
||||||
|
raise ValueError("The command parameter is required")
|
||||||
|
|
||||||
|
command = kwargs["command"]
|
||||||
|
if command not in nomos_cli:
|
||||||
|
raise ValueError("Unknown command provided")
|
||||||
|
|
||||||
logger.debug(f"Cli is going to be initialized with this config {nomos_cli[command]}")
|
logger.debug(f"Cli is going to be initialized with this config {nomos_cli[command]}")
|
||||||
self._command = command
|
self._command = command
|
||||||
self._image_name = nomos_cli[command]["image"]
|
self._image_name = nomos_cli[command]["image"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user