Fix a TypeError when working in a Folsom env.
Fix a TypeError when working in a Folsom env.

Fixes bug 1121975

Change-Id: I6b4482e9efd1332f8969c54f68a365f6b48d8e04

j4/horizon,FNST-OpenStack/horizon,bigswitch/horizon,FNST-OpenStack/horizon,promptworks/horizon,NCI-Cloud/horizon,dan1/horizon-proto,Dark-Hacker/horizon,endorphinl/horizon,Hodorable/0602,CiscoSystems/horizon,wangxiangyu/horizon,maestro-hybrid-cloud/horizon,noironetworks/horizon,philoniare/horizon,idjaw/horizon,anthonydillon/horizon,promptworks/horizon,mrunge/openstack_horizon,VaneCloud/horizon,xinwu/horizon,xme1226/horizon,doug-fish/horizon,Mirantis/mos-horizon,bac/horizon,mandeepdhami/horizon,doug-fish/horizon,yeming233/horizon,watonyweng/horizon,zouyapeng/horizon,tuskar/tuskar-ui,wolverineav/horizon,spring-week-topos/horizon-week,mrunge/horizon,maestro-hybrid-cloud/horizon,orbitfp7/horizon,nvoron23/avos,Daniex/horizon,BiznetGIO/horizon,coreycb/horizon,flochaz/horizon,watonyweng/horizon,wolverineav/horizon,Metaswitch/horizon,NCI-Cloud/horizon,tsufiev/horizon,openstack-ja/horizon,sandvine/horizon,mdavid/horizon,Frostman/eho-horizon,icloudrnd/automation_tools,gochist/horizon,watonyweng/horizon,saydulk/horizon,takeshineshiro/horizon,davidcusatis/horizon,davidcusatis/horizon,coreycb/horizon,CiscoSystems/avos,tanglei528/horizon,idjaw/horizon,newrocknj/horizon,ging/horizon,tellesnobrega/horizon,gochist/horizon,aaronorosen/horizon-congress,yeming233/horizon,vladryk/horizon,henaras/horizon,VaneCloud/horizon,redhat-openstack/horizon,newrocknj/horizon,yjxtogo/horizon,watonyweng/horizon,izadorozhna/dashboard_integration_tests,xme1226/horizon,davidcusatis/horizon,Hodorable/0602,idjaw/horizon,rdo-management/tuskar-ui,noironetworks/horizon,zouyapeng/horizon,Tesora/tesora-horizon,BiznetGIO/horizon,wangxiangyu/horizon,Daniex/horizon,icloudrnd/automation_tools,aaronorosen/horizon-congress,froyobin/horizon,dan1/horizon-x509,Mirantis/mos-horizon,mrunge/openstack_horizon,kfox1111/horizon,redhat-openstack/horizon,liyitest/rr,BiznetGIO/horizon,zouyapeng/horizon,ikargis/horizon_fod,sandvine/horizon,ging/horizon,mandeepdhami/horizon,anthonydillon/horizon,mrunge/horizon,tqtran7/horizon,luhanhan/horizon,dan1/horizon-proto,Tesora/tesora-horizon,wangxiangyu/horizon,yeming233/horizon,blueboxgroup/horizon,froyobin/horizon,Mirantis/mos-horizon,rdo-management/tuskar-ui,saydulk/horizon,dan1/horizon-proto,karthik-suresh/horizon,mandeepdhami/horizon,henaras/horizon,Daniex/horizon,ging/horizon,philoniare/horizon,citrix-openstack-build/horizon,BiznetGIO/horizon,anthonydillon/horizon,damien-dg/horizon,Frostman/eho-horizon,Solinea/horizon,noironetworks/horizon,promptworks/horizon,NCI-Cloud/horizon,karthik-suresh/horizon,RudoCris/horizon,endorphinl/horizon-fork,Hodorable/0602,luhanhan/horizon,j4/horizon,Solinea/horizon,dan1/horizon-x509,Tesora/tesora-horizon,sandvine/horizon,Metaswitch/horizon,vladryk/horizon,damien-dg/horizon,CiscoSystems/horizon,philoniare/horizon,doug-fish/horizon,takeshineshiro/horizon,mrunge/openstack_horizon,mrunge/horizon_lib,Metaswitch/horizon,blueboxgroup/horizon,openstack/horizon,saydulk/horizon,r-icarus/openstack_microserver,citrix-openstack-build/horizon,django-leonardo/horizon,orbitfp7/horizon,dan1/horizon-proto,coreycb/horizon,anthonydillon/horizon,bac/horizon,flochaz/horizon,eayunstack/horizon,mrunge/horizon_lib,tellesnobrega/horizon,gerrive/horizon,spring-week-topos/horizon-week,RudoCris/horizon,icloudrnd/automation_tools,noironetworks/horizon,doug-fish/horizon,rdo-management/tuskar-ui,kaiweifan/horizon,tsufiev/horizon,openstack/horizon,kaiweifan/horizon,wangxiangyu/horizon,vladryk/horizon,froyobin/horizon,tsufiev/horizon,wolverineav/horizon,tanglei528/horizon,tanglei528/horizon,redhat-openstack/horizon,spring-week-topos/horizon-week,netscaler/horizon,yanheven/console,kfox1111/horizon,ging/horizon,endorphinl/horizon,luhanhan/horizon,endorphinl/horizon-fork,agileblaze/OpenStackTwoFactorAuthentication,netscaler/horizon,bigswitch/horizon,django-leonardo/horizon,philoniare/horizon,openstack/horizon,bigswitch/horizon,mrunge/horizon,endorphinl/horizon,django-leonardo/horizon,agileblaze/OpenStackTwoFactorAuthentication,NeCTAR-RC/horizon,gerrive/horizon,CiscoSystems/horizon,gerrive/horizon,flochaz/horizon,endorphinl/horizon,NCI-Cloud/horizon,eayunstack/horizon,gochist/horizon,endorphinl/horizon-fork,bac/horizon,dan1/horizon-x509,henaras/horizon,eayunstack/horizon,pranavtendolkr/horizon,agileblaze/OpenStackTwoFactorAuthentication,ikargis/horizon_fod,pranavtendolkr/horizon,blueboxgroup/horizon,netscaler/horizon,flochaz/horizon,bac/horizon,redhat-cip/horizon,JioCloud/horizon,nvoron23/avos,tellesnobrega/horizon,Solinea/horizon,orbitfp7/horizon,NeCTAR-RC/horizon,maestro-hybrid-cloud/horizon,tuskar/tuskar-ui,mdavid/horizon,openstack-ja/horizon,vladryk/horizon,yjxtogo/horizon,yeming233/horizon,r-icarus/openstack_microserver,izadorozhna/dashboard_integration_tests,tsufiev/horizon,maestro-hybrid-cloud/horizon,liyitest/rr,j4/horizon,django-leonardo/horizon,JioCloud/horizon,yanheven/console,dan1/horizon-x509,pranavtendolkr/horizon,xme1226/horizon,RudoCris/horizon,Dark-Hacker/horizon,ChameleonCloud/horizon,Metaswitch/horizon,davidcusatis/horizon,icloudrnd/automation_tools,coreycb/horizon,endorphinl/horizon-fork,openstack/horizon,redhat-cip/horizon,yanheven/console,ChameleonCloud/horizon,VaneCloud/horizon,saydulk/horizon,agileblaze/OpenStackTwoFactorAuthentication,VaneCloud/horizon,Daniex/horizon,rickerc/horizon_audit,CiscoSystems/avos,blueboxgroup/horizon,damien-dg/horizon,rdo-management/tuskar-ui,idjaw/horizon,CiscoSystems/avos,Dark-Hacker/horizon,mandeepdhami/horizon,JioCloud/horizon,kaiweifan/horizon,Mirantis/mos-horizon,promptworks/horizon,CiscoSystems/avos,xinwu/horizon,ChameleonCloud/horizon,citrix-openstack-build/horizon,gerrive/horizon,wolverineav/horizon,ChameleonCloud/horizon,zouyapeng/horizon,newrocknj/horizon,yjxtogo/horizon,redhat-openstack/horizon,yjxtogo/horizon,sandvine/horizon,tqtran7/horizon,tqtran7/horizon,mrunge/horizon_lib,rickerc/horizon_audit,pranavtendolkr/horizon,r-icarus/openstack_microserver,openstack-ja/horizon,tuskar/tuskar-ui,takeshineshiro/horizon,mdavid/horizon,tqtran7/horizon,Hodorable/0602,j4/horizon,Frostman/eho-horizon,NeCTAR-RC/horizon,ikargis/horizon_fod,liyitest/rr,aaronorosen/horizon-congress,nvoron23/avos,tellesnobrega/horizon,NeCTAR-RC/horizon,Dark-Hacker/horizon,luhanhan/horizon,orbitfp7/horizon,CiscoSystems/horizon,bigswitch/horizon,karthik-suresh/horizon,nvoron23/avos,mdavid/horizon,rickerc/horizon_audit,FNST-OpenStack/horizon,FNST-OpenStack/horizon,liyitest/rr,takeshineshiro/horizon,Tesora/tesora-horizon,redhat-cip/horizon,kfox1111/horizon,xinwu/horizon,redhat-cip/horizon,xinwu/horizon,Solinea/horizon,karthik-suresh/horizon,newrocknj/horizon,RudoCris/horizon,henaras/horizon,damien-dg/horizon,kfox1111/horizon