DRY up the image_state logic. Fix an issue where glance style images (which aren't required to have an 'image_state' property) couldn't be used to run instances on the EC2 controller.
DRY up the image_state logic. Fix an issue where glance style images (which aren't required to have an 'image_state' property) couldn't be used to run instances on the EC2 controller.

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