host/create: Set host custom attributes only when *not* validating
host/create: Set host custom attributes only when *not* validating

Possibly rails4 related, adding a new host with a custom attribute
(Custom Identifier) would trigger an exception
([ActiveRecord::RecordNotSaved] You cannot call create unless the parent is saved).

Since set_record_vars is called with mode=:validate, then saved and then
set_record_vars is called without validate, we can simply hold off
setting the custom attribute until we're not validating.

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

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