replace multiple if stmts with dict and for loop
replace multiple if stmts with dict and for loop

Partial-Bug: #1501663
Change-Id: Ib62b8085dbd60767e35828cfcca4b6798b0cbfed

egafford/sahara,openstack/sahara,tellesnobrega/sahara,tellesnobrega/sahara,egafford/sahara,openstack/sahara