@@ -70,7 +70,7 @@ pub fn parse_input_to_json(value: &str) -> Result<String, DscError> {
7070/// Will return `Err` if could not find requested setting.
7171pub fn get_setting ( value_name : & str ) -> Result < DscSettingValue , DscError > {
7272
73- const SETTINGS_FILE_NAME : & str = "settings. dsc.json" ;
73+ const SETTINGS_FILE_NAME : & str = "dsc.settings .json" ;
7474 // Note that default settings file name has a version that is specific to this version of dsc
7575 const DEFAULT_SETTINGS_FILE_NAME : & str = "default_settings.v1.dsc.json" ;
7676
@@ -140,16 +140,16 @@ fn load_value_from_json(path: &PathBuf, value_name: &str) -> Result<serde_json::
140140#[ cfg( target_os = "windows" ) ]
141141fn get_settings_policy_file_path ( ) -> String
142142{
143- // $env:ProgramData+"\dsc\settings. dsc.json"
143+ // $env:ProgramData+"\dsc\dsc.settings .json"
144144 // This location is writable only by admins, but readable by all users
145145 let Ok ( local_program_data_path) = std:: env:: var ( "ProgramData" ) else { return String :: new ( ) ; } ;
146- Path :: new ( & local_program_data_path) . join ( "dsc" ) . join ( "settings. dsc.json" ) . display ( ) . to_string ( )
146+ Path :: new ( & local_program_data_path) . join ( "dsc" ) . join ( "dsc.settings .json" ) . display ( ) . to_string ( )
147147}
148148
149149#[ cfg( not( target_os = "windows" ) ) ]
150150fn get_settings_policy_file_path ( ) -> String
151151{
152- // "/etc/dsc/settings. dsc.json"
152+ // "/etc/dsc/dsc.settings .json"
153153 // This location is writable only by admins, but readable by all users
154- Path :: new ( "/etc" ) . join ( "dsc" ) . join ( "settings. dsc.json" ) . display ( ) . to_string ( )
154+ Path :: new ( "/etc" ) . join ( "dsc" ) . join ( "dsc.settings .json" ) . display ( ) . to_string ( )
155155}
0 commit comments