diff --git a/coretex/cli/commands/base.py b/coretex/cli/commands/base.py index 4e252753..0ad7b9b2 100644 --- a/coretex/cli/commands/base.py +++ b/coretex/cli/commands/base.py @@ -71,6 +71,6 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: # Call the main command function return f(*args, **kwargs) - return click.command(name = name, cls=cls, **attrs)(wrapper) # type: ignore + return click.command(name = name, cls = cls, **attrs)(wrapper) # type: ignore return decorator diff --git a/coretex/cli/modules/node.py b/coretex/cli/modules/node.py index daa692b6..315f2a57 100644 --- a/coretex/cli/modules/node.py +++ b/coretex/cli/modules/node.py @@ -186,13 +186,13 @@ def getTagFromImageUrl(image: str) -> str: def shouldUpdate(image: str) -> bool: repository = getRepoFromImageUrl(image) try: - imageJson = docker.imageInspect(image, CLISettings.verbose) + imageJson = docker.imageInspect(image) except CommandException: # imageInspect() will raise an error if image doesn't exist locally return True try: - manifestJson = docker.manifestInspect(image, CLISettings.verbose) + manifestJson = docker.manifestInspect(image) except CommandException: return False diff --git a/coretex/utils/docker.py b/coretex/utils/docker.py index f8dfda2a..b1369736 100644 --- a/coretex/utils/docker.py +++ b/coretex/utils/docker.py @@ -150,7 +150,7 @@ def removeContainer(name: str, verbose: Optional[bool] = False) -> None: command(["docker", "rm", name], ignoreStdout = not verbose, ignoreStderr = True) -def manifestInspect(image: str, verbose: Optional[bool] = False) -> Dict[str, Any]: +def manifestInspect(image: str) -> Dict[str, Any]: _, output, _ = command(["docker", "manifest", "inspect", image, "--verbose"], ignoreStdout = True) jsonOutput = json.loads(output) if not isinstance(jsonOutput, dict): @@ -159,7 +159,7 @@ def manifestInspect(image: str, verbose: Optional[bool] = False) -> Dict[str, An return jsonOutput -def imageInspect(image: str, verbose: Optional[bool] = False) -> Dict[str, Any]: +def imageInspect(image: str) -> Dict[str, Any]: _, output, _ = command(["docker", "image", "inspect", image], ignoreStdout = True, ignoreStderr = True) jsonOutput = json.loads(output) if not isinstance(jsonOutput, list):