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

(-)a/src/plugins/job_submit/lua/job_submit_lua.c (+7 lines)
Lines 662-667 static int _get_job_req_field(const struct job_descriptor *job_desc, Link Here
662
		lua_pushstring (L, job_desc->acctg_freq);
662
		lua_pushstring (L, job_desc->acctg_freq);
663
	} else if (!strcmp(name, "alloc_node")) {
663
	} else if (!strcmp(name, "alloc_node")) {
664
		lua_pushstring (L, job_desc->alloc_node);
664
		lua_pushstring (L, job_desc->alloc_node);
665
	} else if (!strcmp(name, "array_inx")) {
666
		lua_pushstring (L, job_desc->array_inx);
665
	} else if (!strcmp(name, "begin_time")) {
667
	} else if (!strcmp(name, "begin_time")) {
666
		lua_pushnumber (L, job_desc->begin_time);
668
		lua_pushnumber (L, job_desc->begin_time);
667
	} else if (!strcmp(name, "boards_per_node")) {
669
	} else if (!strcmp(name, "boards_per_node")) {
Lines 853-858 static int _set_job_req_field(lua_State *L) Link Here
853
		xfree(job_desc->acctg_freq);
855
		xfree(job_desc->acctg_freq);
854
		if (strlen(value_str))
856
		if (strlen(value_str))
855
			job_desc->acctg_freq = xstrdup(value_str);
857
			job_desc->acctg_freq = xstrdup(value_str);
858
	} else if (!strcmp(name, "array_inx")) {
859
		value_str = luaL_checkstring(L, 3);
860
		xfree(job_desc->array_inx);
861
		if (strlen(value_str))
862
			job_desc->array_inx = xstrdup(value_str);
856
	} else if (!strcmp(name, "begin_time")) {
863
	} else if (!strcmp(name, "begin_time")) {
857
		job_desc->begin_time = luaL_checknumber(L, 3);
864
		job_desc->begin_time = luaL_checknumber(L, 3);
858
	} else if (!strcmp(name, "burst_buffer")) {
865
	} else if (!strcmp(name, "burst_buffer")) {

Return to ticket 2682