From 7c2b977d78ad12fbdbfa7d68c158d94c82b0bb23 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Mon, 31 Aug 2009 23:48:23 +0000
Subject: [PATCH] fix for not printing the same debug message 2 times

---
 src/slurmctld/job_mgr.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index 998574c3c97..6db15a84cb6 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -2681,14 +2681,10 @@ static int _job_create(job_desc_msg_t * job_desc, int allocate, int will_run,
 			qos_rec.name = "standby";
 	}
 
-	error_code = _determine_and_validate_qos(job_ptr, &qos_rec);
-	if(error_code != SLURM_SUCCESS) {
-		error("Invalid qos (%s) for job_id %u", qos_rec.name,
-		      job_ptr->job_id);
+	if((error_code = _determine_and_validate_qos(job_ptr, &qos_rec))
+	   != SLURM_SUCCESS) 
 		goto cleanup_fail;
-	} 
-
-
+	
 	/* already confirmed submit_uid==0 */
 	/* If the priority isn't given we will figure it out later
 	 * after we see if the job is eligible or not. So we want
-- 
GitLab