From faebdd5a0daa5fa3dd4b75ac1b341e79d26c83d8 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 21 Aug 2024 13:08:53 +0200 Subject: cli: remove accents in image name Remove accents in the --name argument of the create image command. --- cli/objects/images.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/objects') diff --git a/cli/objects/images.py b/cli/objects/images.py index 21f727c..dff2f9c 100644 --- a/cli/objects/images.py +++ b/cli/objects/images.py @@ -165,8 +165,9 @@ class OgImage(): return fs_code = list(part_info)[0]['code'] + image_name = remove_accents(parsed_args.name) payload = {'clients': parsed_args.client_ip, 'disk': parsed_args.disk, 'center_id': center_id, - 'partition': parsed_args.part, 'code': str(fs_code), 'name': parsed_args.name, + 'partition': parsed_args.part, 'code': str(fs_code), 'name': image_name, 'id': '0', 'repository_id': repo_id} if parsed_args.desc: payload['description'] = parsed_args.desc -- cgit v1.2.3-18-g5258