Cleans most Rubocop issues for app/models/host.rb
Cleans most Rubocop issues for app/models/host.rb

Also does some small refactorings inside methods.
Usually refactored .nil? with ternary operator into #try with ||.

gmcculloug/manageiq,skateman/manageiq,jvlcek/manageiq,NaNi-Z/manageiq,billfitzgerald0120/manageiq,mresti/manageiq,jameswnl/manageiq,maas-ufcg/manageiq,jrafanie/manageiq,jrafanie/manageiq,ailisp/manageiq,israel-hdez/manageiq,maas-ufcg/manageiq,hstastna/manageiq,gerikis/manageiq,romaintb/manageiq,yaacov/manageiq,maas-ufcg/manageiq,jvlcek/manageiq,d-m-u/manageiq,NaNi-Z/manageiq,d-m-u/manageiq,gmcculloug/manageiq,tinaafitz/manageiq,ilackarms/manageiq,ManageIQ/manageiq,djberg96/manageiq,maas-ufcg/manageiq,aufi/manageiq,KevinLoiseau/manageiq,jntullo/manageiq,billfitzgerald0120/manageiq,josejulio/manageiq,skateman/manageiq,hstastna/manageiq,branic/manageiq,jrafanie/manageiq,mzazrivec/manageiq,pkomanek/manageiq,pkomanek/manageiq,gmcculloug/manageiq,jameswnl/manageiq,pkomanek/manageiq,mkanoor/manageiq,d-m-u/manageiq,josejulio/manageiq,borod108/manageiq,yaacov/manageiq,chessbyte/manageiq,billfitzgerald0120/manageiq,mresti/manageiq,matobet/manageiq,NickLaMuro/manageiq,jrafanie/manageiq,borod108/manageiq,NickLaMuro/manageiq,pkomanek/manageiq,mkanoor/manageiq,ailisp/manageiq,romanblanco/manageiq,mresti/manageiq,romanblanco/manageiq,borod108/manageiq,ailisp/manageiq,syncrou/manageiq,gerikis/manageiq,jntullo/manageiq,agrare/manageiq,juliancheal/manageiq,aufi/manageiq,NickLaMuro/manageiq,gerikis/manageiq,fbladilo/manageiq,tzumainn/manageiq,mfeifer/manageiq,mresti/manageiq,hstastna/manageiq,fbladilo/manageiq,NaNi-Z/manageiq,NickLaMuro/manageiq,jvlcek/manageiq,romanblanco/manageiq,billfitzgerald0120/manageiq,ManageIQ/manageiq,matobet/manageiq,skateman/manageiq,mzazrivec/manageiq,ilackarms/manageiq,jvlcek/manageiq,romaintb/manageiq,tinaafitz/manageiq,syncrou/manageiq,romaintb/manageiq,jameswnl/manageiq,mfeifer/manageiq,aufi/manageiq,chessbyte/manageiq,yaacov/manageiq,lpichler/manageiq,matobet/manageiq,maas-ufcg/manageiq,gmcculloug/manageiq,aufi/manageiq,KevinLoiseau/manageiq,jntullo/manageiq,djberg96/manageiq,KevinLoiseau/manageiq,djberg96/manageiq,israel-hdez/manageiq,israel-hdez/manageiq,josejulio/manageiq,romanblanco/manageiq,maas-ufcg/manageiq,branic/manageiq,skateman/manageiq,NaNi-Z/manageiq,hstastna/manageiq,ManageIQ/manageiq,durandom/manageiq,andyvesel/manageiq,ilackarms/manageiq,tinaafitz/manageiq,mzazrivec/manageiq,borod108/manageiq,branic/manageiq,jameswnl/manageiq,ilackarms/manageiq,KevinLoiseau/manageiq,fbladilo/manageiq,andyvesel/manageiq,ManageIQ/manageiq,mfeifer/manageiq,lpichler/manageiq,tinaafitz/manageiq,chessbyte/manageiq,andyvesel/manageiq,d-m-u/manageiq,fbladilo/manageiq,romaintb/manageiq,ailisp/manageiq,agrare/manageiq,yaacov/manageiq,matobet/manageiq,mkanoor/manageiq,andyvesel/manageiq,agrare/manageiq,mzazrivec/manageiq,juliancheal/manageiq,kbrock/manageiq,lpichler/manageiq,juliancheal/manageiq,kbrock/manageiq,durandom/manageiq,tzumainn/manageiq,gerikis/manageiq,josejulio/manageiq,KevinLoiseau/manageiq,syncrou/manageiq,durandom/manageiq,KevinLoiseau/manageiq,kbrock/manageiq,mfeifer/manageiq,branic/manageiq,syncrou/manageiq,agrare/manageiq,juliancheal/manageiq,chessbyte/manageiq,mkanoor/manageiq,romaintb/manageiq,tzumainn/manageiq,israel-hdez/manageiq,romaintb/manageiq,tzumainn/manageiq,kbrock/manageiq,jntullo/manageiq,djberg96/manageiq,lpichler/manageiq,durandom/manageiq