Skip to content

Commit

Permalink
💬 Improve confirmation in assign license
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Dec 4, 2024
1 parent 868b64a commit 2d5215e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centralcli/cliassign.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ def license(
# TODO add confirmation method builder to output class
do_auto = True if "auto" in [s.lower() for s in serial_nums] else False
if do_auto:
_msg = f"Enable Auto-assignment of [bright_green]{license}[/bright_green] to applicable devices."
_msg = f"Enable Auto-assignment of [bright_green]{license.value}[/bright_green] to applicable devices."
if len(serial_nums) > 1:
cli.econsole.print('[cyan]auto[/] keyword provided remaining entries will be [bright_red]ignored[/]')
else:
_msg = f"Assign [bright_green]{license}[/bright_green] to"
_msg = f"Assign [bright_green]{license.value}[/bright_green] to"
try:
_serial_nums = [s if utils.is_serial(s) else cli.cache.get_dev_identifier(s).serial for s in serial_nums]
except Exception:
Expand Down

0 comments on commit 2d5215e

Please sign in to comment.