From aec5fdccbfcbdaebcdffea063d3ac7fbd7cef1bd Mon Sep 17 00:00:00 2001 From: Valters Gajevskis Date: Wed, 26 Feb 2025 20:54:17 +0200 Subject: [PATCH] Issue-85: added --no-headers option to 'psconfig remote' --- psconfig/perfsonar-psconfig/bin/commands/remote | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/psconfig/perfsonar-psconfig/bin/commands/remote b/psconfig/perfsonar-psconfig/bin/commands/remote index f9a59de5..f55e0922 100644 --- a/psconfig/perfsonar-psconfig/bin/commands/remote +++ b/psconfig/perfsonar-psconfig/bin/commands/remote @@ -23,6 +23,7 @@ parser.add_argument('--agent', '-a', dest='agent', action='store', help='Name of parser.add_argument('--transform', dest='transform', action='store', help='JSON transform object or a path to a file starting with @ that alters downloaded json') parser.add_argument('--bind-address', '-B', dest='bind_address', action='store', help='Local address to bind to when downloading JSON') parser.add_argument('--ssl-ca-file', dest='ssl_ca_file', action='store', help='A typical certificate authority (CA) file found on BSD. Used to verify server SSL certificate when using https.') +parser.add_argument('--no-headers', dest='no_headers', action='store_true', help='Do not print agent header information') args = parser.parse_args() #Init CLI utility @@ -64,7 +65,8 @@ for agent in PSCONFIG_CLI_AGENTS: agent_found = True #print heading - cli.print_msg("=== {} Agent ===".format(agent['name'])) + if not args.no_headers: + cli.print_msg("=== {} Agent ===".format(agent['name'])) #Load config file using appropriate config_connect class config_client = agent['client_class']()