@@ -304,7 +304,7 @@ impl super::Nexus {
304304 let ( .., authz_project, authz_instance) =
305305 instance_lookup. lookup_for ( authz:: Action :: Modify ) . await ?;
306306
307- let boot_disk = match params. boot_disk . clone ( ) {
307+ let boot_disk_id = match params. boot_disk . clone ( ) {
308308 Some ( disk) => {
309309 let selector = params:: DiskSelector {
310310 project : match & disk {
@@ -323,7 +323,7 @@ impl super::Nexus {
323323 None => None ,
324324 } ;
325325
326- let update = InstanceUpdate { boot_disk } ;
326+ let update = InstanceUpdate { boot_disk_id } ;
327327 self . datastore ( )
328328 . reconfigure_instance ( opctx, & authz_instance, update)
329329 . await
@@ -1054,7 +1054,7 @@ impl super::Nexus {
10541054
10551055 // Propolis wants the name of the boot disk rather than ID, because we send names
10561056 // rather than IDs in the disk requsts as assembled below.
1057- if db_instance. boot_disk == Some ( disk. id ( ) ) {
1057+ if db_instance. boot_disk_id == Some ( disk. id ( ) ) {
10581058 boot_disk_name = Some ( disk. name ( ) . to_string ( ) ) ;
10591059 }
10601060
@@ -1079,16 +1079,16 @@ impl super::Nexus {
10791079 // look up a name when assembling the Propolis request, we might as well
10801080 // remove this check; we can just pass the ID and rely on Propolis' own
10811081 // check that the boot disk is attached.
1082- if let Some ( instance_boot_disk ) = db_instance. boot_disk . as_ref ( ) {
1082+ if let Some ( instance_boot_disk_id ) = db_instance. boot_disk_id . as_ref ( ) {
10831083 if boot_disk_name. is_none ( ) {
10841084 error ! ( self . log, "instance boot disk is not attached" ;
1085- "boot_disk " => ?instance_boot_disk ,
1085+ "boot_disk_id " => ?instance_boot_disk_id ,
10861086 "instance id" => %db_instance. id( ) ) ;
10871087
10881088 return Err ( InstanceStateChangeError :: Other ( Error :: internal_error ( & format ! (
10891089 "instance {} has boot disk {:?} but it is not attached" ,
10901090 db_instance. id( ) ,
1091- db_instance. boot_disk . as_ref( ) ,
1091+ db_instance. boot_disk_id . as_ref( ) ,
10921092 ) ) ) ) ;
10931093 }
10941094 }
0 commit comments