Skip to content

Commit

Permalink
Documentation update.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjekv committed Feb 20, 2024
1 parent 8e3cb37 commit 43e6ee9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mreg_cli/commands/host_submodules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def add(args: argparse.Namespace) -> None:
Flag("-force", action="store_true", description="Enable force."),
Flag(
"-override",
short_desc="Comma separated override list",
short_desc="Comma separated override list, requires -force.",
description=(
"Comma separated overrides for forced removal. "
"Comma separated overrides for forced removal. Requires -force."
"Supports the following overrides: 'cname', 'naptr', 'mxs', 'srv', 'ptr'. "
"Example usage: '-override cnames,ipaddresses,mxs'"
),
Expand Down Expand Up @@ -260,7 +260,9 @@ def forced(override_required: str = None) -> bool:
# Warn user and raise exception if any force requirements was found
if warnings:
warn_msg = "\n".join(warnings)
cli_warning("{} will require override for deletion:\n{}".format(info["name"], warn_msg))
cli_warning(
"{} requires force and override for deletion:\n{}".format(info["name"], warn_msg)
)

# Delete host
path = f"/api/v1/hosts/{info['name']}"
Expand Down

0 comments on commit 43e6ee9

Please sign in to comment.