Updates to SaltStackConfig module

Updates to function names and parameters to ensure consistency as discussed in PR 543.

Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
This commit is contained in:
Brian Wuchner
2022-02-23 15:32:31 -05:00
parent b9cdded704
commit 02fd75b6a1
2 changed files with 11 additions and 7 deletions

View File

@@ -515,7 +515,7 @@ Function Get-SscvRALicense {
Get-SscData license get_vra_license
}
Function Get-SscMinionKeyState {
Function Get-SscMinionKey {
<#
.NOTES
===========================================================================
@@ -545,7 +545,7 @@ Function Get-SscMinionKeyState {
}
Function Set-SscMinionKeyState {
Function Set-SscMinionKey {
<#
.NOTES
===========================================================================
@@ -567,7 +567,8 @@ Function Set-SscMinionKeyState {
param(
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)][string]$master,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)][string]$minion,
[Parameter(Mandatory=$true)][ValidateSet('accept','reject')][string]$state
[Parameter(Mandatory, ParameterSetName='accept')][switch]$accept,
[Parameter(Mandatory, ParameterSetName='reject')][switch]$reject
)
begin {
@@ -575,6 +576,9 @@ Function Set-SscMinionKeyState {
}
process {
if ($PSCmdlet.ParameterSetName -eq 'accept') { $state = 'accept'}
if ($PSCmdlet.ParameterSetName -eq 'reject') { $state = 'reject'}
if ($PSCmdlet.ShouldProcess("$master : $minion" , $state)) {
$collection += ,@($master, $minion)
}
@@ -592,7 +596,7 @@ Function Set-SscMinionKeyState {
}
}
Function Remove-SscMinionKeyState {
Function Remove-SscMinionKey {
<#
.NOTES
===========================================================================