View | Details | Raw Unified | Return to ticket 8160
Collapse All | Expand All

(-)a/src/plugins/job_submit/lua/job_submit_lua.c (-2 / +3 lines)
Lines 1085-1090 static int _set_job_req_field(lua_State *L) Link Here
1085
			job_desc->tres_per_node = xstrdup(value_str);
1085
			job_desc->tres_per_node = xstrdup(value_str);
1086
	} else if (!xstrcmp(name, "immediate")) {
1086
	} else if (!xstrcmp(name, "immediate")) {
1087
		job_desc->immediate = luaL_checknumber(L, 3);
1087
		job_desc->immediate = luaL_checknumber(L, 3);
1088
	} else if (!xstrcmp(name, "mail_type")) {
1089
		job_desc->mail_type = luaL_checknumber(L, 3);
1088
	} else if (!xstrcmp(name, "licenses")) {
1090
	} else if (!xstrcmp(name, "licenses")) {
1089
		value_str = luaL_checkstring(L, 3);
1091
		value_str = luaL_checkstring(L, 3);
1090
		xfree(job_desc->licenses);
1092
		xfree(job_desc->licenses);
Lines 1679-1685 static int _load_script(void) Link Here
1679
		return error("Unable to stat %s: %s",
1681
		return error("Unable to stat %s: %s",
1680
		             lua_script_path, strerror(errno));
1682
		             lua_script_path, strerror(errno));
1681
	}
1683
	}
1682
	
1684
1683
	if (st.st_mtime <= lua_script_last_loaded) {
1685
	if (st.st_mtime <= lua_script_last_loaded) {
1684
		debug3("%s: skipping loading Lua script: %s", __func__,
1686
		debug3("%s: skipping loading Lua script: %s", __func__,
1685
		       lua_script_path);
1687
		       lua_script_path);
1686
- 

Return to ticket 8160