Skip to content

Commit

Permalink
CTX-6321: Updated as discussed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Tintor committed Sep 3, 2024
1 parent fac0d7c commit 842bde6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions coretex/cli/modules/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def shouldUpdate(image: str) -> bool:
return True


def getNodeVersion(image: Optional[str] = None) -> str:
if image is None:
def getNodeVersion() -> str:
if not isRunning():
try:
nodeConfig = NodeConfiguration.load()
image = nodeConfig.image
Expand All @@ -212,6 +212,8 @@ def getNodeVersion(image: Optional[str] = None) -> str:
for error in ex.errors:
ui.errorEcho(error)
raise
else:
image = docker.getContainerImageName(config_defaults.DOCKER_CONTAINER_NAME)

try:
imageJson = docker.imageInspect(image)
Expand Down

0 comments on commit 842bde6

Please sign in to comment.