@@ -70,7 +70,7 @@ pub fn parse_input_to_json(value: &str) -> Result<String, DscError> {
70
70
/// Will return `Err` if could not find requested setting.
71
71
pub fn get_setting ( value_name : & str ) -> Result < DscSettingValue , DscError > {
72
72
73
- const SETTINGS_FILE_NAME : & str = "settings. dsc.json" ;
73
+ const SETTINGS_FILE_NAME : & str = "dsc.settings .json" ;
74
74
// Note that default settings file name has a version that is specific to this version of dsc
75
75
const DEFAULT_SETTINGS_FILE_NAME : & str = "default_settings.v1.dsc.json" ;
76
76
@@ -140,16 +140,16 @@ fn load_value_from_json(path: &PathBuf, value_name: &str) -> Result<serde_json::
140
140
#[ cfg( target_os = "windows" ) ]
141
141
fn get_settings_policy_file_path ( ) -> String
142
142
{
143
- // $env:ProgramData+"\dsc\settings. dsc.json"
143
+ // $env:ProgramData+"\dsc\dsc.settings .json"
144
144
// This location is writable only by admins, but readable by all users
145
145
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 ( )
147
147
}
148
148
149
149
#[ cfg( not( target_os = "windows" ) ) ]
150
150
fn get_settings_policy_file_path ( ) -> String
151
151
{
152
- // "/etc/dsc/settings. dsc.json"
152
+ // "/etc/dsc/dsc.settings .json"
153
153
// 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 ( )
155
155
}
0 commit comments