~gpanders/gandi-cli

bfc5a0955562d9a09500e7fa6802b9a8913fc29f — Greg Anders 2 months ago 23abfff
Fix output of alias commands
1 files changed, 4 insertions(+), 4 deletions(-)

M src/gandi/commands/alias.py
M src/gandi/commands/alias.py => src/gandi/commands/alias.py +4 -4
@@ 24,15 24,15 @@ def alias(config: Dict[str, str], auth: GandiAuth, args: argparse.Namespace):
        print("\n".join(get_aliases(url, auth)))
    elif args.add:
        if add_alias(url, auth, args.add):
            print(f"Created alias '{alias}'")
            print(f"Created alias '{args.add}'")
        else:
            print(f"Alias '{alias}' already exists")
            print(f"Alias '{args.add}' already exists")

    elif args.delete:
        if delete_alias(url, auth, args.delete):
            print(f"Removed alias '{alias}'")
            print(f"Removed alias '{args.delete}'")
        else:
            print(f"Alias '{alias}' does not exist")
            print(f"Alias '{args.delete}' does not exist")


def get_aliases(url: str, auth: GandiAuth):