File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed
db-queries/src/db/datastore Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ pub use schema_versions::*;
215215pub use semver_version:: * ;
216216pub use service_kind:: * ;
217217pub use silo:: * ;
218- pub use silo_group:: * ;
219218pub use silo_auth_settings:: * ;
219+ pub use silo_group:: * ;
220220pub use silo_user:: * ;
221221pub use silo_user_password_hash:: * ;
222222pub use sled:: * ;
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ mod rendezvous_debug_dataset;
9090mod role;
9191mod saga;
9292mod silo;
93- mod silo_group;
9493mod silo_auth_settings;
94+ mod silo_group;
9595mod silo_user;
9696mod sled;
9797mod sled_instance;
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ impl DataStore {
6666 debug ! ( opctx. log, "attempting to create built-in silos" ) ;
6767
6868 use nexus_db_schema:: schema:: silo;
69- use nexus_db_schema:: schema:: silo_quotas;
7069 use nexus_db_schema:: schema:: silo_auth_settings;
70+ use nexus_db_schema:: schema:: silo_quotas;
7171 let conn = self . pool_connection_authorized ( opctx) . await ?;
7272
7373 let count = self
@@ -465,7 +465,8 @@ impl DataStore {
465465 }
466466
467467 self . silo_quotas_delete ( opctx, & conn, & authz_silo) . await ?;
468- self . silo_auth_settings_delete ( opctx, & conn, & authz_silo) . await ?;
468+ self . silo_auth_settings_delete ( opctx, & conn, & authz_silo)
469+ . await ?;
469470
470471 self . virtual_provisioning_collection_delete_on_connection (
471472 & opctx. log , & conn, id,
Original file line number Diff line number Diff line change @@ -108,8 +108,10 @@ impl super::Nexus {
108108 . await ?;
109109 assert_eq ! ( authz_user. id( ) , silo_user_id) ;
110110
111- let silo_auth_settings =
112- self . db_datastore . silo_auth_settings_view ( opctx, & authz_silo) . await ?;
111+ let silo_auth_settings = self
112+ . db_datastore
113+ . silo_auth_settings_view ( opctx, & authz_silo)
114+ . await ?;
113115
114116 // Create an access token record.
115117 let token = DeviceAccessToken :: new (
Original file line number Diff line number Diff line change @@ -248,7 +248,11 @@ impl super::Nexus {
248248 let ( .., authz_silo) =
249249 silo_lookup. lookup_for ( authz:: Action :: Modify ) . await ?;
250250 self . db_datastore
251- . silo_auth_settings_update ( opctx, & authz_silo, settings. clone ( ) . into ( ) )
251+ . silo_auth_settings_update (
252+ opctx,
253+ & authz_silo,
254+ settings. clone ( ) . into ( ) ,
255+ )
252256 . await
253257 }
254258
You can’t perform that action at this time.
0 commit comments