From fce0b7f16de0c9fb29edcb923b63cd3b6db05f91 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Apr 2024 10:23:31 +0200 Subject: Merging upstream version 0.10.0. Signed-off-by: Daniel Baumann --- eos_downloader/cli/get/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eos_downloader/cli') diff --git a/eos_downloader/cli/get/commands.py b/eos_downloader/cli/get/commands.py index b4525fe..498473a 100644 --- a/eos_downloader/cli/get/commands.py +++ b/eos_downloader/cli/get/commands.py @@ -128,6 +128,7 @@ def eos( console = Console() # Get from Context token = ctx.obj["token"] + is_latest: bool = False if token is None or token == "": console.print( "❗ Token is unset ! Please configure ARISTA_TOKEN or use --token option", @@ -156,6 +157,7 @@ def eos( my_download.authenticate() elif latest: + is_latest = True my_download = eos_downloader.eos.EOSDownloader( image=image_type, software="EOS", @@ -180,7 +182,7 @@ def eos( my_download.download_local(file_path=output, checksum=True) if import_docker: - my_download.docker_import(image_name=docker_name) + my_download.docker_import(image_name=docker_name, is_latest=is_latest) console.print("✅ processing done !") sys.exit(0) -- cgit v1.2.3