Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ragingra committed Dec 13, 2024
1 parent 8b2e7eb commit e49d872
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions functions/pe_db_names.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ function peadm::pe_db_names (
'pe-orchestrator',
'pe-rbac',
]

$pe_2025_or_later = SemVerRange('>= 2025.0.0')
$pe_2023_8_or_later = SemVerRange('>= 2023.8.0')

case $pe_ver {
# The patching service was added in 2025.0.0
SemVerRange('>= 2025.0.0'): {
$pe_2025_or_later: {
$original_db_names + [
'pe-hac',
'pe-patching',
]
}

# The host-action-collector (hac) was added in 2023.8
SemVerRange('>= 2023.8.0'): {
$original_db_names + [ 'pe-hac' ]
$pe_2023_8_or_later: {
$original_db_names + ['pe-hac']
}

default: {
Expand Down

0 comments on commit e49d872

Please sign in to comment.