similar to lib/puppet/provider/esx_datastore/default.rb, this exception should be in def host method instead of being repeated elsewhere.