Skip to content

Commit 65702f4

Browse files
author
Andrew
committed
feedback 1_5
1 parent f1c44c7 commit 65702f4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
File renamed without changes.

dsc/tests/dsc_settings.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Describe 'tests for dsc settings' {
55
BeforeAll {
66

77
$script:policyFilePath = if ($IsWindows) {
8-
Join-Path $env:ProgramData "dsc" "settings.dsc.json"
8+
Join-Path $env:ProgramData "dsc" "dsc.settings.json"
99
} else {
1010
"/etc/dsc/settings.dsc.json"
1111
}
1212

1313
$script:dscHome = (Get-Command dsc).Path | Split-Path
14-
$script:dscSettingsFilePath = Join-Path $script:dscHome "settings.dsc.json"
14+
$script:dscSettingsFilePath = Join-Path $script:dscHome "dsc.settings.json"
1515
$script:dscDefaultv1SettingsFilePath = Join-Path $script:dscHome "default_settings.v1.dsc.json"
1616
$script:dscDefaultv1SettingsJson = Get-Content -Raw -Path $script:dscDefaultv1SettingsFilePath
1717

dsc_lib/src/util.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
7171
pub 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")]
141141
fn 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"))]
150150
fn 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

Comments
 (0)