Skip to content

Commit

Permalink
Remove IP/network from host add OK message
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan authored Jun 5, 2024
1 parent 7f70f18 commit 780cec6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mreg_cli/commands/host_submodules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ def add(args: argparse.Namespace) -> None:
host = Host.create(data)
if not host:
raise CreateError("Failed to add host.")
msg = f"Created host {host.name}"
if args.ip:
msg += f" with IP {args.ip}"
OutputManager().add_ok(msg)
OutputManager().add_ok(f"Created host {host.name}")

if macaddress is not None:
if ip:
Expand Down

0 comments on commit 780cec6

Please sign in to comment.