Addressed codeclimate warning
Addressed codeclimate warning

Addressed codeclimate warning Method available_job_templates has a Cognitive Complexity of 6

Follow up fix for changes requested in https://github.com/ManageIQ/manageiq-ui-classic/pull/4138#pullrequestreview-142958559

https://bugzilla.redhat.com/show_bug.cgi?id=1590441

ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic