Skip to content
Snippets Groups Projects
Commit d00fbb3e authored by Danny Auble's avatar Danny Auble
Browse files

fixes for return error on bad uid

parent aa27e25b
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ proc create_res { res_params failure_expected } { ...@@ -67,7 +67,7 @@ proc create_res { res_params failure_expected } {
-re "Reservation created: ($alpha_numeric_under)" { -re "Reservation created: ($alpha_numeric_under)" {
set res_name $expect_out(1,string) set res_name $expect_out(1,string)
} }
-re "slurm_update error: Invalid user" { -re "Error creating the reservation: Invalid user" {
send_user "\nWARNING: user not authorized " send_user "\nWARNING: user not authorized "
send_user "to create reservation\n" send_user "to create reservation\n"
set ret_code 1 set ret_code 1
......
...@@ -110,7 +110,7 @@ if {[string compare $def_node ""] == 0} { ...@@ -110,7 +110,7 @@ if {[string compare $def_node ""] == 0} {
# #
spawn $scontrol create PartitionName=$part_name Nodes=$def_node spawn $scontrol create PartitionName=$part_name Nodes=$def_node
expect { expect {
-re "slurm_update error: Invalid user" { -re "Error creating the partition: Invalid user" {
send_user "\nWARNING: user not authorized to create partition\n" send_user "\nWARNING: user not authorized to create partition\n"
exit $exit_code exit $exit_code
exp_continue exp_continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment