bug fix to compute ES cluster shapes
Merge pull request #6919 from matteosan1/topic_FixESClusterShapes74X

bug fix to compute ES cluster shapes