Fix for bug 1064838 and partial fix for bug 1064141
 - Setting comp_spec attributes for ha apps only if the app is ha
 - fixing a typo in variable name where 'gear' was used instead of 'g'
Merge pull request #4758 from abhgupta/abhgupta-dev

Merged by openshift-bot