Skip to content

Commit a8976cd

Browse files
authored
Merge pull request #163 from perfsonar/issue-85
fixes-issue-85
2 parents 4b6dcda + aec5fdc commit a8976cd

File tree

1 file changed

+3
-1
lines changed
  • psconfig/perfsonar-psconfig/bin/commands

1 file changed

+3
-1
lines changed

psconfig/perfsonar-psconfig/bin/commands/remote

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ parser.add_argument('--agent', '-a', dest='agent', action='store', help='Name of
2323
parser.add_argument('--transform', dest='transform', action='store', help='JSON transform object or a path to a file starting with @ that alters downloaded json')
2424
parser.add_argument('--bind-address', '-B', dest='bind_address', action='store', help='Local address to bind to when downloading JSON')
2525
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.')
26+
parser.add_argument('--no-headers', dest='no_headers', action='store_true', help='Do not print agent header information')
2627
args = parser.parse_args()
2728

2829
#Init CLI utility
@@ -64,7 +65,8 @@ for agent in PSCONFIG_CLI_AGENTS:
6465
agent_found = True
6566

6667
#print heading
67-
cli.print_msg("=== {} Agent ===".format(agent['name']))
68+
if not args.no_headers:
69+
cli.print_msg("=== {} Agent ===".format(agent['name']))
6870

6971
#Load config file using appropriate config_connect class
7072
config_client = agent['client_class']()

0 commit comments

Comments
 (0)