From d29b11fe947e17f6af54c259fc2da276755c30d1 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Tue, 3 Dec 2013 11:41:27 -0800
Subject: [PATCH] BGQ - Only read this variable if ran by the slurmctld.

---
 src/plugins/select/bluegene/bg_read_config.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/select/bluegene/bg_read_config.c b/src/plugins/select/bluegene/bg_read_config.c
index b7162656ca1..efec6e93e37 100644
--- a/src/plugins/select/bluegene/bg_read_config.c
+++ b/src/plugins/select/bluegene/bg_read_config.c
@@ -874,7 +874,8 @@ no_calc:
 		      "STATIC LayoutMode.  Please update your bluegene.conf.");
 
 #ifdef HAVE_BGQ
-	if (s_p_get_string(&tmp_char, "RebootQOSList", tbl)) {
+	if ((bg_recover != NOT_FROM_CONTROLLER)
+	    && s_p_get_string(&tmp_char, "RebootQOSList", tbl)) {
 		bool valid;
 		char *token, *last = NULL;
 		slurmdb_qos_rec_t *qos = NULL;
-- 
GitLab