@@ -30,8 +30,8 @@ use crate::{
3030 } ,
3131 } ,
3232 engine:: {
33- BlockDevTier , CreateAction , DeleteAction , Engine , EngineAction , FilesystemUuid ,
34- KeyDescription , Lockable , OptionalTokenSlotInput , PoolIdentifier , PoolUuid , RenameAction ,
33+ BlockDevTier , CreateAction , DeleteAction , Engine , EngineAction , KeyDescription , Lockable ,
34+ OptionalTokenSlotInput , PoolIdentifier , PoolUuid , RenameAction ,
3535 } ,
3636 stratis:: StratisError ,
3737} ;
@@ -142,7 +142,7 @@ pub async fn destroy_filesystems_method(
142142 manager : & Lockable < Arc < RwLock < Manager > > > ,
143143 pool_uuid : PoolUuid ,
144144 filesystems : Vec < ObjectPath < ' _ > > ,
145- ) -> ( ( bool , Vec < FilesystemUuid > ) , u16 , String ) {
145+ ) -> ( ( bool , Vec < String > ) , u16 , String ) {
146146 let default_return = ( false , ( Vec :: new ( ) ) ) ;
147147
148148 let uuids = {
@@ -190,7 +190,14 @@ pub async fn destroy_filesystems_method(
190190 }
191191 }
192192 }
193- ( ( true , v) , DbusErrorEnum :: OK as u16 , OK_STRING . to_string ( ) )
193+ (
194+ (
195+ true ,
196+ v. into_iter ( ) . map ( |u| u. simple ( ) . to_string ( ) ) . collect ( ) ,
197+ ) ,
198+ DbusErrorEnum :: OK as u16 ,
199+ OK_STRING . to_string ( ) ,
200+ )
194201 }
195202 None => (
196203 default_return,
0 commit comments