AMBARI-5365. Cluster deployment fails depending on the stack selected. (yusaku)