mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-24 19:41:40 +01:00
Built-in policy change logs no longer printed within quotes.
This commit is contained in:
parent
15078aaea9
commit
db5104ecb8
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user