@@ -274,7 +274,7 @@ impl<K, S, C: ResourceSetupStatusCheck> std::fmt::Display for ResourceSetupInfo<
274274 Some ( SetupChangeType :: Invalid ) => "INVALID" ,
275275 None => "USER MANAGED" ,
276276 } ;
277- write ! ( f, "[ {:^9} ] {}\n \n " , status_code, self . description) ?;
277+ writeln ! ( f, "[ {:^9} ] {}" , status_code, self . description) ?;
278278 if let Some ( status_check) = & self . status_check {
279279 let changes = status_check. describe_changes ( ) ;
280280 if !changes. is_empty ( ) {
@@ -283,9 +283,9 @@ impl<K, S, C: ResourceSetupStatusCheck> std::fmt::Display for ResourceSetupInfo<
283283 for change in changes {
284284 writeln ! ( f, " - {}" , change) ?;
285285 }
286+ writeln ! ( f) ?;
286287 }
287288 }
288- writeln ! ( f) ?;
289289 Ok ( ( ) )
290290 }
291291}
@@ -323,6 +323,8 @@ pub struct FlowSetupStatusCheck {
323323 pub target_resources : Vec <
324324 ResourceSetupInfo < ResourceIdentifier , TargetSetupState , Box < dyn ResourceSetupStatusCheck > > ,
325325 > ,
326+
327+ pub unknown_resources : Vec < ResourceIdentifier > ,
326328}
327329
328330impl ObjectSetupStatusCheck for FlowSetupStatusCheck {
@@ -383,18 +385,17 @@ impl std::fmt::Display for FormattedFlowSetupStatusCheck<'_> {
383385 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
384386 let flow_ssc = self . 1 ;
385387
386- write ! (
387- f,
388- "{} Flow: {}\n \n " ,
389- ObjectSetupStatusCode ( flow_ssc) ,
390- self . 0
391- ) ?;
388+ write ! ( f, "{} Flow: {}\n " , ObjectSetupStatusCode ( flow_ssc) , self . 0 ) ?;
392389
393390 let mut f = indented ( f) . with_str ( INDENT ) ;
394391 write ! ( f, "{}" , flow_ssc. tracking_table) ?;
395392
396393 for target_resource in & flow_ssc. target_resources {
397- writeln ! ( f, "{}" , target_resource) ?;
394+ write ! ( f, "{}" , target_resource) ?;
395+ }
396+
397+ for resource in & flow_ssc. unknown_resources {
398+ writeln ! ( f, "[ UNKNOWN ] {resource}" ) ?;
398399 }
399400
400401 Ok ( ( ) )
@@ -403,9 +404,9 @@ impl std::fmt::Display for FormattedFlowSetupStatusCheck<'_> {
403404
404405impl std:: fmt:: Display for AllSetupStatusCheck {
405406 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
406- write ! ( f, "{}" , self . metadata_table) ?;
407+ writeln ! ( f, "{}" , self . metadata_table) ?;
407408 for ( flow_name, flow_status) in & self . flows {
408- write ! (
409+ writeln ! (
409410 f,
410411 "{}" ,
411412 FormattedFlowSetupStatusCheck ( flow_name, flow_status)
0 commit comments