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:
parent
cefdf130d3
commit
e1490f60dc
2 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
16
lib/fog/ovirt/requests/compute/get_api_version.rb
Normal file
16
lib/fog/ovirt/requests/compute/get_api_version.rb
Normal 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
|
Loading…
Add table
Reference in a new issue