Built-in policy change logs no longer printed within quotes.

This commit is contained in:
Joe Testa 2024-03-14 18:13:53 -04:00
parent 15078aaea9
commit db5104ecb8
2 changed files with 6 additions and 4 deletions

View File

@ -444,9 +444,11 @@ macs = %s
client_policy_descriptions = []
for policy_name, policy in BUILTIN_POLICIES.items():
policy_description = policy_name
policy_description = ""
if verbose:
policy_description = "{:s}: {:s}".format(policy_name, policy['changelog'])
policy_description = "\"{:s}\": {:s}".format(policy_name, policy['changelog'])
else:
policy_description = "\"{:s}\"".format(policy_name)
if policy['server_policy']:
server_policy_descriptions.append(policy_description)

View File

@ -802,11 +802,11 @@ def list_policies(out: OutputBuffer, verbose: bool) -> None:
if len(server_policy_names) > 0:
out.head('\nServer policies:\n')
out.info(" * \"%s\"" % "\"\n * \"".join(server_policy_names))
out.info(" * %s" % "\n * ".join(server_policy_names))
if len(client_policy_names) > 0:
out.head('\nClient policies:\n')
out.info(" * \"%s\"" % "\"\n * \"".join(client_policy_names))
out.info(" * %s" % "\n * ".join(client_policy_names))
out.sep()
if len(server_policy_names) == 0 and len(client_policy_names) == 0: