Change _agent_has_method to _get_agent_features. Update the inject files function so that it calls _get_agent_features only once per injected file.
Change _agent_has_method to _get_agent_features. Update the inject
files function so that it calls _get_agent_features only once per injected
file.

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