From f26a8c3d231f202aa2c468d96971f0d80172f393 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 4 Mar 2024 10:14:37 +0100 Subject: improve missing clients error reporting in multiple commands All the commands that need target clients now have a more descriptive error message when the clients of the command are missing. --- cli/objects/disks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/objects/disks.py') diff --git a/cli/objects/disks.py b/cli/objects/disks.py index 6c9847c..c7315af 100644 --- a/cli/objects/disks.py +++ b/cli/objects/disks.py @@ -93,7 +93,7 @@ class OgDisk(): for l in parsed_args.client_ip: ips.add(l) if not ips: - print("No clients found") + print("Missing --client-ip, or --room-id/--center-id. No clients provided.") return None payload = {'clients': parsed_args.client_ip, 'type': disk_type_map[parsed_args.type], 'disk': str(parsed_args.num), -- cgit v1.2.3-18-g5258