From 10bcf5ed881d240ba757c6d1fab204339c8d0344 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 17 Mar 2017 15:08:50 -0700 Subject: [PATCH] client: send acct keys to acct manager only for projects attached via acct mgr. --- client/acct_mgr.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/client/acct_mgr.cpp b/client/acct_mgr.cpp index d69e820f63..0fcf69e0d1 100644 --- a/client/acct_mgr.cpp +++ b/client/acct_mgr.cpp @@ -155,7 +155,6 @@ int ACCT_MGR_OP::do_rpc( " %s\n" " %s\n" " %d\n" - " %s\n" " %d\n" " %f\n" " %f\n" @@ -169,12 +168,10 @@ int ACCT_MGR_OP::do_rpc( " %f\n" " %f\n" " %d\n" - " %d\n" - " \n", + " %d\n", p->master_url, p->project_name, p->suspended_via_gui?1:0, - p->authenticator, p->hostid, not_started_dur, in_progress_dur, @@ -190,6 +187,15 @@ int ACCT_MGR_OP::do_rpc( p->njobs_success, p->njobs_fail ); + if (p->attached_via_acct_mgr) { + fprintf(f, + " %s\n", + p->authenticator + ); + } + fprintf(f, + " \n" + ); } MIOFILE mf; mf.init_file(f);