From 5fb51e5697648dc20a0690e61a1ff2bc59fa1d60 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Wed, 25 Sep 2024 08:28:55 +0200 Subject: [PATCH] Fix error when trying to edit missing config The hint to the create command was missing the "config" gommand group. --- CHANGES/+config_create_error.bugfix | 1 + pulp_cli/config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/+config_create_error.bugfix diff --git a/CHANGES/+config_create_error.bugfix b/CHANGES/+config_create_error.bugfix new file mode 100644 index 00000000..d42cb8d4 --- /dev/null +++ b/CHANGES/+config_create_error.bugfix @@ -0,0 +1 @@ +Fixed the error message for `pulp config edit` to properly hint at `pulp config create`. diff --git a/pulp_cli/config.py b/pulp_cli/config.py index 0ccc9cfe..5c5668bc 100644 --- a/pulp_cli/config.py +++ b/pulp_cli/config.py @@ -287,7 +287,7 @@ def edit(location: str) -> None: raise click.ClickException( _( "File '{location}' does not exists. If you wish to create the file, use the pulp " - "create command." + "config create command." ).format(location=location) )