lib/kubernetes-deploy/kubernetes_resource/redis.rb in kubernetes-deploy-0.26.3 vs lib/kubernetes-deploy/kubernetes_resource/redis.rb in kubernetes-deploy-0.26.4
- old
+ new
@@ -27,10 +27,10 @@
end
private
def deployment_ready?
- return false unless status = @deployment["status"]
+ return false unless (status = @deployment["status"])
# all redis pods are running
status.fetch("availableReplicas", -1) == status.fetch("replicas", 0)
end
def service_ready?