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:
parent
e966e73ff0
commit
be8cf18772
1 changed files with 1 additions and 0 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue