File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1085,11 +1085,13 @@ impl super::Nexus {
10851085 "boot_disk_id" => ?instance_boot_disk_id,
10861086 "instance id" => %db_instance. id( ) ) ;
10871087
1088- return Err ( InstanceStateChangeError :: Other ( Error :: internal_error ( & format ! (
1089- "instance {} has boot disk {:?} but it is not attached" ,
1090- db_instance. id( ) ,
1091- db_instance. boot_disk_id. as_ref( ) ,
1092- ) ) ) ) ;
1088+ return Err ( InstanceStateChangeError :: Other (
1089+ Error :: internal_error ( & format ! (
1090+ "instance {} has boot disk {:?} but it is not attached" ,
1091+ db_instance. id( ) ,
1092+ db_instance. boot_disk_id. as_ref( ) ,
1093+ ) ) ,
1094+ ) ) ;
10931095 }
10941096 }
10951097
Original file line number Diff line number Diff line change @@ -4007,9 +4007,7 @@ async fn test_boot_disk_can_be_changed(cptestctx: &ControlPlaneTestContext) {
40074007// Create an instance without a boot disk, fail to set the boot disk to a
40084008// detached disk, then attach the disk and make it a boot disk.
40094009#[ nexus_test]
4010- async fn test_boot_disk_must_be_attached (
4011- cptestctx : & ControlPlaneTestContext ,
4012- ) {
4010+ async fn test_boot_disk_must_be_attached ( cptestctx : & ControlPlaneTestContext ) {
40134011 let client = & cptestctx. external_client ;
40144012 let instance_name = "nifs" ;
40154013
You can’t perform that action at this time.
0 commit comments