From 4de9c438da8bc938c6bc1956cd1bbc3da9ca4fec Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Thu, 11 Jul 2024 13:06:21 +0200 Subject: [PATCH] polish --- src/anemoi/registry/commands/entry.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/anemoi/registry/commands/entry.py b/src/anemoi/registry/commands/entry.py index 71aee7f..b57262f 100644 --- a/src/anemoi/registry/commands/entry.py +++ b/src/anemoi/registry/commands/entry.py @@ -200,9 +200,12 @@ def load(self, args): LOG.info(f"Entry in {collection} has been created : {res}.") def remove(self, args): + path = args.path + if not path.startswith("/"): + path = "/" + path rest = Rest() - rest.delete(args.path) - LOG.info(f"{args.path} has been deleted.") + rest.delete(path) + LOG.info(f"{path} has been deleted.") command = Entry