heat cli : remove some duplication from parameter formatting
heat cli : remove some duplication from parameter formatting

Cleanup - bin/heat move some duplicated code into a function

Change-Id: Ib74077c557a2b8d7c640ee1686237bb5223b2a85
Signed-off-by: Steven Hardy <4d1810d1ff6d7f22d774341c4549c02173d2f2ab@redhat.com>

srznew/heat,steveb/heat,maestro-hybrid-cloud/heat,cryptickp/heat,srznew/heat,NeCTAR-RC/heat,redhat-openstack/heat,rdo-management/heat,Triv90/Heat,dragorosson/heat,rickerc/heat_audit,gonzolino/heat,cwolferh/heat-scratch,varunarya10/heat,citrix-openstack-build/heat,steveb/heat,rh-s/heat,takeshineshiro/heat,noironetworks/heat,pratikmallya/heat,gonzolino/heat,pshchelo/heat,JioCloud/heat,dims/heat,noironetworks/heat,Triv90/Heat,openstack/heat,ntt-sic/heat,citrix-openstack-build/heat,dims/heat,rh-s/heat,jasondunsmore/heat,dragorosson/heat,cwolferh/heat-scratch,takeshineshiro/heat,rdo-management/heat,pshchelo/heat,ntt-sic/heat,miguelgrinberg/heat,redhat-openstack/heat,pratikmallya/heat,Triv90/Heat,rickerc/heat_audit,JioCloud/heat,cryptickp/heat,varunarya10/heat,openstack/heat,miguelgrinberg/heat,maestro-hybrid-cloud/heat,NeCTAR-RC/heat,jasondunsmore/heat