Skip to content

Commit

Permalink
Fix node failover test +remove unneeded dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaydon committed Oct 15, 2021
1 parent e5b29e4 commit 7090fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DSCClassResources/QlikNode.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class QlikNode{
proxyEnabled = $this.Proxy
schedulerEnabled = $this.Scheduler
printingEnabled = $this.Printing
Failover = $this.Failover
failoverCandidate = $this.Failover
}
if ($this.Name) { $params.Add("Name", $this.Name) }
if ($this.NodePurpose) { $params.Add("NodePurpose", $this.NodePurpose) }
Expand Down Expand Up @@ -224,8 +224,8 @@ class QlikNode{
return $false
}

if ($null -ne $this.Failover -and $item.failover -ne $this.Failover) {
Write-Verbose "Test-HasProperties: Failover property value - $($item.Failover) does not match desired state - $($this.Failover)"
if ($null -ne $this.Failover -and $item.failoverCandidate -ne $this.Failover) {
Write-Verbose "Test-HasProperties: Failover property value - $($item.failoverCandidate) does not match desired state - $($this.Failover)"
return $false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Configuration WaitForQlikServiceReady {
[int] $RetryDelay = 15
)

Import-DscResource -ModuleName PSDesiredStateConfiguration

WaitForQlikResource $Hostname {
Name = "ServiceReady-$Hostname"
ResourceType = 'ServiceStatus'
Expand Down

0 comments on commit 7090fe5

Please sign in to comment.