From 21ea996ced1f6fddf42601b2c3486437781fd2f6 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Fri, 18 Aug 2017 13:40:35 -0600
Subject: [PATCH] log invalid QOS

Coverity CID 44696
---
 src/plugins/burst_buffer/cray/burst_buffer_cray.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/plugins/burst_buffer/cray/burst_buffer_cray.c b/src/plugins/burst_buffer/cray/burst_buffer_cray.c
index c72933a8084..6a13d1b5437 100644
--- a/src/plugins/burst_buffer/cray/burst_buffer_cray.c
+++ b/src/plugins/burst_buffer/cray/burst_buffer_cray.c
@@ -1106,10 +1106,9 @@ static void _set_assoc_mgr_ptrs(bb_alloc_t *bb_alloc)
 
 	memset(&qos_rec, 0, sizeof(slurmdb_qos_rec_t));
 	qos_rec.name = bb_alloc->qos;
-	assoc_mgr_fill_in_qos(acct_db_conn, &qos_rec,
-			      accounting_enforce,
-			      &bb_alloc->qos_ptr,
-			      true);
+	if (assoc_mgr_fill_in_qos(acct_db_conn, &qos_rec, accounting_enforce,
+				  &bb_alloc->qos_ptr, true) != SLURM_SUCCESS)
+		verbose("%s: Invalid QOS name: %s", __func__, bb_alloc->qos);
 
 	assoc_mgr_unlock(&assoc_locks);
 }
-- 
GitLab