File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,7 @@ impl Configurator {
527
527
pub fn invoke_export ( & mut self ) -> Result < ConfigurationExportResult , DscError > {
528
528
let mut result = ConfigurationExportResult :: new ( ) ;
529
529
let mut conf = config_doc:: Configuration :: new ( ) ;
530
+ conf. metadata = self . config . metadata . clone ( ) ;
530
531
531
532
let mut progress = ProgressBar :: new ( self . config . resources . len ( ) as u64 , self . progress_format ) ?;
532
533
let resources = self . config . resources . clone ( ) ;
@@ -552,7 +553,17 @@ impl Configurator {
552
553
progress. write_increment ( 1 ) ;
553
554
}
554
555
555
- conf. metadata = Some ( self . get_result_metadata ( Operation :: Export ) ) ;
556
+ let export_metadata = self . get_result_metadata ( Operation :: Export ) ;
557
+ match conf. metadata {
558
+ Some ( mut metadata) => {
559
+ metadata. microsoft = export_metadata. microsoft ;
560
+ conf. metadata = Some ( metadata) ;
561
+ } ,
562
+ _ => {
563
+ conf. metadata = Some ( export_metadata) ;
564
+ } ,
565
+ }
566
+
556
567
result. result = Some ( conf) ;
557
568
Ok ( result)
558
569
}
You can’t perform that action at this time.
0 commit comments