reworked the code a little, based on rubocop suggestions
reworked the code a little, based on rubocop suggestions

sachidanandaurs/planet-gluster,OSAS/middleman-planet,msvbhat/planet-gluster,sachidanandaurs/planet-gluster,ManageIQ/planet.manageiq.org,OSAS/middleman-planet,OSAS/middleman-planet,ManageIQ/planet.manageiq.org,ManageIQ/planet.manageiq.org,sachidanandaurs/planet-gluster,msvbhat/planet-gluster,sachidanandaurs/planet-gluster,msvbhat/planet-gluster,msvbhat/planet-gluster,OSAS/middleman-planet,ManageIQ/planet.manageiq.org