From 2dbc68f4e5936f8c642d62623067903fc18630ea Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 12 Nov 2013 12:09:46 -0800 Subject: [PATCH] Fix initialization issue --- src/plugins/select/cray/select_cray.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/select/cray/select_cray.c b/src/plugins/select/cray/select_cray.c index e7584917c84..f0aa3cb28f7 100644 --- a/src/plugins/select/cray/select_cray.c +++ b/src/plugins/select/cray/select_cray.c @@ -403,7 +403,11 @@ unpack_error: */ extern int init ( void ) { - if (slurmctld_conf.select_type_param & CR_OTHER_CONS_RES) + /* We must call the api here since we call this from other + * things other than the slurmctld. + */ + uint16_t select_type_param = slurm_get_select_type_param(); + if (select_type_param & CR_OTHER_CONS_RES) plugin_id = 108; debug_flags = slurm_get_debug_flags(); verbose("%s loaded", plugin_name); -- GitLab