File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,10 @@ pub fn add_resource_export_results_to_configuration(resource: &DscResource, conf
82
82
} else {
83
83
format ! ( "{}-{i}" , r. resource_type)
84
84
} ;
85
- r. properties = escape_property_values ( & props) ?;
86
- let mut properties = serde_json:: to_value ( & r. properties ) ?;
87
85
let mut metadata = Metadata {
88
86
microsoft : None ,
89
87
other : Map :: new ( ) ,
90
88
} ;
91
- get_metadata_from_result ( & mut properties, & mut metadata) ?;
92
89
if let Some ( security_context) = props. remove ( "_securityContext" ) {
93
90
let context: SecurityContextKind = serde_json:: from_value ( security_context) ?;
94
91
metadata. microsoft = Some (
@@ -98,6 +95,9 @@ pub fn add_resource_export_results_to_configuration(resource: &DscResource, conf
98
95
}
99
96
) ;
100
97
}
98
+ r. properties = escape_property_values ( & props) ?;
99
+ let mut properties = serde_json:: to_value ( & r. properties ) ?;
100
+ get_metadata_from_result ( & mut properties, & mut metadata) ?;
101
101
r. properties = Some ( properties. as_object ( ) . cloned ( ) . unwrap_or_default ( ) ) ;
102
102
r. metadata = if metadata. microsoft . is_some ( ) || !metadata. other . is_empty ( ) {
103
103
Some ( metadata)
You can’t perform that action at this time.
0 commit comments