Skip to content

Commit 0be3273

Browse files
committed
Fix up
1 parent 72f33a9 commit 0be3273

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Modules/FileContentDsc/DSCResources/DSR_IniSettingsFile/DSR_IniSettingsFile.schema.mof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class DSR_IniSettingsFile : OMI_BaseResource
66
[Key, Description("The name of the key to add or set in the section.")] String Key;
77
[Write, Description("Specifies the value type that contains the value to set the entry to. Defaults to 'Text'."),ValueMap{"Text", "Secret"},Values{"Text", "Secret"}] String Type;
88
[Write, Description("The text to set the entry value to. Only used when Type is set to 'Text'.")] String Text;
9-
[write, Description("The secret text to set the entry value to. Only used when Type is set to 'Secret'."),EmbeddedInstance("DSR_Credential")] String Secret;
9+
[write, Description("The secret text to set the entry value to. Only used when Type is set to 'Secret'."),EmbeddedInstance("MSFT_Credential")] String Secret;
1010
};

Modules/FileContentDsc/DSCResources/DSR_KeyValuePairFile/DSR_KeyValuePairFile.schema.mof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class DSR_KeyValuePairFile : OMI_BaseResource
66
[Write, Description("Specifies the if the key value pair with the specified key should exist in the file."),ValueMap{"Present", "Absent"},Values{"Present", "Absent"}] String Ensure;
77
[Write, Description("Specifies the value type to use as the replacement string. Defaults to 'Text'."),ValueMap{"Text", "Secret"},Values{"Text", "Secret"}] String Type;
88
[Write, Description("The text to replace the value with in the identified key. Only used when Type is set to 'Text'.")] String Text;
9-
[write, Description("The secret text to replace the value with in the identified key. Only used when Type is set to 'Secret'."),EmbeddedInstance("DSR_Credential")] String Secret;
9+
[write, Description("The secret text to replace the value with in the identified key. Only used when Type is set to 'Secret'."),EmbeddedInstance("MSFT_Credential")] String Secret;
1010
[Write, Description("Ignore the case of the name of the key. Defaults to $False.")] Boolean IgnoreNameCase;
1111
[Write, Description("Ignore the case of any text or secret when determining if it they need to be updated. Defaults to $False.")] Boolean IgnoreValueCase;
1212
};

Modules/FileContentDsc/DSCResources/DSR_ReplaceText/DSR_ReplaceText.schema.mof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ class DSR_ReplaceText : OMI_BaseResource
55
[Key, Description("The RegEx string to use to search the text file.")] String Search;
66
[Write, Description("Specifies the value type to use as the replacement string. Defaults to 'Text'."),ValueMap{"Text", "Secret"},Values{"Text", "Secret"}] String Type;
77
[Write, Description("The text to replace the text identified by the RegEx. Only used when Type is set to 'Text'.")] String Text;
8-
[write, Description("The secret text to replace the text identified by the RegEx. Only used when Type is set to 'Secret'."),EmbeddedInstance("DSR_Credential")] String Secret;
8+
[write, Description("The secret text to replace the text identified by the RegEx. Only used when Type is set to 'Secret'."),EmbeddedInstance("MSFT_Credential")] String Secret;
99
};

Tests/TestHelpers/CommonTestHelper.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
Returns an invalid argument exception object
44
@@ -63,12 +63,12 @@ function Get-InvalidOperationRecord
6363
}
6464
elseif ($null -eq $ErrorRecord)
6565
{
66-
$invalidOperationException =
66+
$invalidOperationException =
6767
New-Object -TypeName 'InvalidOperationException' -ArgumentList @( $Message )
6868
}
6969
else
7070
{
71-
$invalidOperationException =
71+
$invalidOperationException =
7272
New-Object -TypeName 'InvalidOperationException' -ArgumentList @( $Message,
7373
$ErrorRecord.Exception )
7474
}
@@ -184,4 +184,4 @@ Export-ModuleMember -Function `
184184
'Get-InvalidOperationRecord', `
185185
'Enter-DscResourceTestEnvironment', `
186186
'Exit-DscResourceTestEnvironment'
187-
187+

0 commit comments

Comments
 (0)