lib/fog/vsphere/requests/compute/get_datacenter.rb in gapinc-fog-1.12.1.2.1 vs lib/fog/vsphere/requests/compute/get_datacenter.rb in gapinc-fog-1.14.0
- old
+ new
@@ -19,10 +19,12 @@
end
end
class Mock
def get_datacenter name
- {:name => "Solutions", :status => "grey"}
+ dc = self.data[:datacenters][name]
+ raise(Fog::Compute::Vsphere::NotFound) unless dc
+ dc
end
end
end
end
end