Fix deployment check to only look at active nodes

Change-Id: Id5980a0a9d3685b28c337c9dc4655f996f267908
Merge "Fix deployment check to only look at active nodes"