fix: refactor client node flags

This commit is contained in:
Roman 2025-03-06 02:48:56 +00:00
parent 04f2f1ad85
commit 201f72097d
No known key found for this signature in database
GPG Key ID: BB3828275C58EFF1
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ nomos_cli = {
},
"client_node": {
"image": NOMOS_IMAGE,
"flags": [],
"flags": [{"tail": [], "-f": [], "/dev/null": []}],
"volumes": [],
"ports": [],
"entrypoint": "",

View File

@ -47,14 +47,15 @@ class NomosCli:
self._port_map = {}
if self._command == "client_node":
cmd = ["tail", "-f", "/dev/null"]
cmd = []
else:
cmd = [NOMOS_CLI, self._command]
for flag in nomos_cli[self._command]["flags"]:
for f, indexes in flag.items():
cmd.append(f)
for j in indexes:
cmd.append(input_values[j])
for flag in nomos_cli[self._command]["flags"]:
for f, indexes in flag.items():
cmd.append(f)
for j in indexes:
cmd.append(input_values[j])
logger.debug(f"NomosCli command to run {cmd}")
@ -109,7 +110,6 @@ class NomosCli:
return result
def set_rest_api(self, host, port):
logger.debug(f"Setting rest API object to host {host} port {port}")
self._api = REST(port, host)
@retry(stop=stop_after_delay(5), wait=wait_fixed(0.1), reraise=True)