Remove duplicated code in virtual_resource.py
Remove duplicated code in virtual_resource.py

pigmej/solar,openstack/solar,CGenie/solar,Mirantis/solar,zen/solar,zen/solar,dshulyak/solar,zen/solar,loles/solar,loles/solar,loles/solar,dshulyak/solar,openstack/solar,CGenie/solar,Mirantis/solar,torgartor21/solar,Mirantis/solar,zen/solar,pigmej/solar,torgartor21/solar,pigmej/solar,Mirantis/solar,openstack/solar,loles/solar