Included used function for datastore,vnet and host

remove else