File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ impl Configurator {
531531 let mut before: Map < String , Value > = serde_json:: from_value ( before_response. actual_state ) ?;
532532 // a `get` will return a `result` property, but an actual `set` will have that as `resources`
533533 if before. contains_key ( "result" ) && !before. contains_key ( "resources" ) {
534- before. insert ( "resources" . to_string ( ) , before[ "result" ] . clone ( ) ) ;
534+ before. insert ( "resources" . to_string ( ) , before[ "result" ] . clone ( ) ) ;
535535 before. remove ( "result" ) ;
536536 }
537537 let before_value = serde_json:: to_value ( & before) ?;
Original file line number Diff line number Diff line change @@ -15,5 +15,7 @@ unsupportedValueDataType = "Unsupported registry value data type"
1515
1616[registry_helper ]
1717whatIfCreateKey = " Key '%{subkey}' not found, would create it"
18+ whatIfDeleteValue = " Would delete value '%{value_name}'"
19+ whatIfDeleteSubkey = " Would delete subkey '%{subkey_name}'"
1820removeErrorKeyNotExist = " Key already does not exist"
1921removeDeletingSubKey = " Deleting subkey '%{name}' using %{parent}"
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ impl RegistryHelper {
274274
275275 if let Some ( value_name) = & self . config . value_name {
276276 if self . what_if {
277- what_if_metadata. push ( format ! ( "Would delete value '{ value_name}'" ) ) ;
277+ what_if_metadata. push ( t ! ( "registry_helper.whatIfDeleteValue" , value_name = value_name) . to_string ( ) ) ;
278278 return Ok ( Some ( Registry {
279279 key_path : self . config . key_path . clone ( ) ,
280280 value_name : Some ( value_name. clone ( ) ) ,
@@ -301,7 +301,7 @@ impl RegistryHelper {
301301 let subkey_name = & self . config . key_path [ parent_path. len ( ) + 1 ..] ;
302302
303303 if self . what_if {
304- what_if_metadata. push ( format ! ( "Would delete subkey '{ subkey_name}'" ) ) ;
304+ what_if_metadata. push ( t ! ( "registry_helper.whatIfDeleteSubkey" , subkey_name = subkey_name) . to_string ( ) ) ;
305305 return Ok ( Some ( Registry {
306306 key_path : self . config . key_path . clone ( ) ,
307307 metadata : Some ( Metadata { what_if : Some ( what_if_metadata) } ) ,
You can’t perform that action at this time.
0 commit comments