replace slurm_get_debug_flags() with slurmctld_conf.debug_flags
Remove unneeded variable