Cleanup XenAPI tests
Cleanup XenAPI tests

It's not necessary to define a function and then immediately call it

Change-Id: I867934f8f83b1aa189de69fa9b60a6d39fe8e25a

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