1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

added a note about ugliness and needing more help with tests

This commit is contained in:
Nick Huanca 2012-12-01 11:25:41 -07:00
parent e966e73ff0
commit be8cf18772

View file

@ -17,6 +17,7 @@ module Fog
required_options.each do |param|
raise ArgumentError, "#{required_options.join(', ')} are required" unless options.has_key? param
end
# TODO This is ugly and needs to rethink mocks
unless ENV['FOG_MOCK']
raise ArgumentError, "#{options["datacenter"]} Doesn't Exist!" unless get_datacenter(options["datacenter"])
raise ArgumentError, "#{options["template_path"]} Doesn't Exist!" unless get_virtual_machine(options["template_path"], options["datacenter"])