Use the dict syntax instead of attribute to access db objects
Use the dict syntax instead of attribute to access db objects

To make the code style consistent, use instance["attr"] instead of
instance.attr in the code.

Change-Id: I766c714cb86d3b67ff9787bc50e5e20e37c9b574

maoy/zknova,cloudbau/nova,bgxavier/nova,gspilio/nova,plumgrid/plumgrid-nova,luogangyi/bcec-nova,Tehsmash/nova,tianweizhang/nova,leilihh/novaha,klmitch/nova,Juniper/nova,petrutlucian94/nova,rajalokan/nova,shootstar/novatest,imsplitbit/nova,NewpTone/stacklab-nova,sridevikoushik31/nova,maelnor/nova,tangfeixiong/nova,JioCloud/nova,gspilio/nova,citrix-openstack-build/nova,houshengbo/nova_vmware_compute_driver,tianweizhang/nova,usc-isi/nova,paulmathews/nova,petrutlucian94/nova,noironetworks/nova,CCI-MOC/nova,tudorvio/nova,MountainWei/nova,vmturbo/nova,jianghuaw/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,tanglei528/nova,rickerc/nova_audit,ted-gould/nova,dstroppa/openstack-smartos-nova-grizzly,eharney/nova,sacharya/nova,projectcalico/calico-nova,cernops/nova,Yusuke1987/openstack_template,sebrandon1/nova,apporc/nova,watonyweng/nova,shootstar/novatest,TieWei/nova,savi-dev/nova,cloudbase/nova,zhimin711/nova,barnsnake351/nova,mandeepdhami/nova,zaina/nova,takeshineshiro/nova,cyx1231st/nova,joker946/nova,thomasem/nova,NoBodyCam/TftpPxeBootBareMetal,tangfeixiong/nova,CloudServer/nova,mmnelemane/nova,kimjaejoong/nova,alexandrucoman/vbox-nova-driver,CloudServer/nova,NoBodyCam/TftpPxeBootBareMetal,luogangyi/bcec-nova,shahar-stratoscale/nova,ewindisch/nova,isyippee/nova,CiscoSystems/nova,tealover/nova,orbitfp7/nova,Francis-Liu/animated-broccoli,cloudbau/nova,redhat-openstack/nova,iuliat/nova,vmturbo/nova,mandeepdhami/nova,rajalokan/nova,scripnichenko/nova,Francis-Liu/animated-broccoli,maheshp/novatest,SUSE-Cloud/nova,adelina-t/nova,Yuriy-Leonov/nova,NeCTAR-RC/nova,akash1808/nova_test_latest,spring-week-topos/nova-week,openstack/nova,klmitch/nova,blueboxgroup/nova,DirectXMan12/nova-hacking,hanlind/nova,shail2810/nova,rahulunair/nova,leilihh/nova,aristanetworks/arista-ovs-nova,TwinkleChawla/nova,ruslanloman/nova,berrange/nova,watonyweng/nova,thomasem/nova,mgagne/nova,TwinkleChawla/nova,kimjaejoong/nova,tudorvio/nova,varunarya10/nova_test_latest,CCI-MOC/nova,rrader/nova-docker-plugin,DirectXMan12/nova-hacking,devendermishrajio/nova,berrange/nova,Juniper/nova,Metaswitch/calico-nova,BeyondTheClouds/nova,yrobla/nova,Yuriy-Leonov/nova,aristanetworks/arista-ovs-nova,hanlind/nova,orbitfp7/nova,shahar-stratoscale/nova,openstack/nova,alvarolopez/nova,Tehsmash/nova,LoHChina/nova,maheshp/novatest,jianghuaw/nova,Triv90/Nova,mmnelemane/nova,openstack/nova,Juniper/nova,felixma/nova,BeyondTheClouds/nova,joker946/nova,cloudbase/nova-virtualbox,double12gzh/nova,virtualopensystems/nova,redhat-openstack/nova,petrutlucian94/nova_dev,rrader/nova-docker-plugin,NeCTAR-RC/nova,NoBodyCam/TftpPxeBootBareMetal,eayunstack/nova,houshengbo/nova_vmware_compute_driver,vladikr/nova_drafts,eonpatapon/nova,mahak/nova,MountainWei/nova,yrobla/nova,felixma/nova,rickerc/nova_audit,ted-gould/nova,petrutlucian94/nova_dev,alaski/nova,jianghuaw/nova,leilihh/novaha,NewpTone/stacklab-nova,bigswitch/nova,jeffrey4l/nova,badock/nova,zaina/nova,rahulunair/nova,klmitch/nova,noironetworks/nova,aristanetworks/arista-ovs-nova,TieWei/nova,JioCloud/nova,Juniper/nova,maoy/zknova,vladikr/nova_drafts,vmturbo/nova,alaski/nova,whitepages/nova,ewindisch/nova,usc-isi/nova,barnsnake351/nova,hanlind/nova,dawnpower/nova,eharney/nova,sridevikoushik31/nova,viggates/nova,cloudbase/nova,LoHChina/nova,raildo/nova,gspilio/nova,scripnichenko/nova,whitepages/nova,plumgrid/plumgrid-nova,gooddata/openstack-nova,gooddata/openstack-nova,projectcalico/calico-nova,viggates/nova,blueboxgroup/nova,sridevikoushik31/openstack,usc-isi/nova,zzicewind/nova,BeyondTheClouds/nova,yrobla/nova,mikalstill/nova,phenoxim/nova,silenceli/nova,DirectXMan12/nova-hacking,devendermishrajio/nova,klmitch/nova,devoid/nova,isyippee/nova,sebrandon1/nova,dims/nova,akash1808/nova,bclau/nova,fnordahl/nova,mikalstill/nova,saleemjaveds/https-github.com-openstack-nova,qwefi/nova,shail2810/nova,bclau/nova,mahak/nova,belmiromoreira/nova,houshengbo/nova_vmware_compute_driver,nikesh-mahalka/nova,sacharya/nova,alexandrucoman/vbox-nova-driver,ntt-sic/nova,fajoy/nova,tanglei528/nova,imsplitbit/nova,sebrandon1/nova,double12gzh/nova,cernops/nova,gooddata/openstack-nova,virtualopensystems/nova,qwefi/nova,cernops/nova,Stavitsky/nova,eayunstack/nova,phenoxim/nova,maoy/zknova,affo/nova,gooddata/openstack-nova,cyx1231st/nova,JioCloud/nova_test_latest,paulmathews/nova,yosshy/nova,jeffrey4l/nova,Triv90/Nova,dims/nova,bgxavier/nova,fnordahl/nova,belmiromoreira/nova,sridevikoushik31/openstack,silenceli/nova,sridevikoushik31/nova,maelnor/nova,akash1808/nova,CiscoSystems/nova,Yusuke1987/openstack_template,apporc/nova,angdraug/nova,dstroppa/openstack-smartos-nova-grizzly,jianghuaw/nova,CEG-FYP-OpenStack/scheduler,raildo/nova,OpenAcademy-OpenStack/nova-scheduler,Triv90/Nova,devendermishrajio/nova_test_latest,Stavitsky/nova,edulramirez/nova,ntt-sic/nova,fajoy/nova,tealover/nova,spring-week-topos/nova-week,JianyuWang/nova,edulramirez/nova,sridevikoushik31/nova,leilihh/nova,nikesh-mahalka/nova,yosshy/nova,sridevikoushik31/openstack,citrix-openstack-build/nova,adelina-t/nova,cloudbase/nova,saleemjaveds/https-github.com-openstack-nova,JianyuWang/nova,OpenAcademy-OpenStack/nova-scheduler,Metaswitch/calico-nova,j-carpentier/nova,dawnpower/nova,rajalokan/nova,varunarya10/nova_test_latest,mahak/nova,takeshineshiro/nova,zhimin711/nova,yatinkumbhare/openstack-nova,savi-dev/nova,akash1808/nova_test_latest,devoid/nova,eonpatapon/nova,NewpTone/stacklab-nova,affo/nova,devendermishrajio/nova_test_latest,mgagne/nova,rajalokan/nova,JioCloud/nova_test_latest,paulmathews/nova,dstroppa/openstack-smartos-nova-grizzly,fajoy/nova,CEG-FYP-OpenStack/scheduler,angdraug/nova,maheshp/novatest,cloudbase/nova-virtualbox,badock/nova,savi-dev/nova,zzicewind/nova,iuliat/nova,vmturbo/nova,ruslanloman/nova,j-carpentier/nova,yatinkumbhare/openstack-nova,alvarolopez/nova,rahulunair/nova,bigswitch/nova,SUSE-Cloud/nova,mikalstill/nova,Brocade-OpenSource/OpenStack-DNRM-Nova