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

[ovirt] Add support for reading the oVirt api version.

This commit is contained in:
Amos Benari 2013-02-24 14:25:12 +02:00
parent cefdf130d3
commit e1490f60dc
2 changed files with 17 additions and 0 deletions

View file

@ -42,6 +42,7 @@ module Fog
request :list_template_volumes
request :add_volume
request :destroy_volume
request :get_api_version
module Shared
# converts an OVIRT object into an hash for fog to consume.

View file

@ -0,0 +1,16 @@
module Fog
module Compute
class Ovirt
class Real
def api_version
client.api_version
end
end
class Mock
def api_version
"3.1"
end
end
end
end
end