Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[xenserver] updated create_sr request documentation, fixed default va…

…lues
  • Loading branch information...
commit c7f75c8aaa5f91f56bcb9920db571382b48030ac 1 parent 72d4c6f
Sergio Rubio authored

Showing 1 changed file with 19 additions and 3 deletions. Show diff stats Hide diff stats

  1. +19 3 lib/fog/xenserver/requests/compute/create_sr.rb
22 lib/fog/xenserver/requests/compute/create_sr.rb
@@ -7,15 +7,31 @@ class Real
7 7 #
8 8 # Create a storage repository (SR)
9 9 #
10   - # http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=SR
  10 + # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=SR
11 11 #
  12 + # @param [String] host_ref host reference
  13 + # @param [String] name_label repository label
  14 + # @param [String] type storage repository type
  15 + # @param [String] name_description storage repository description
  16 + # @param [Hash] device_config used to specify block device path, like
  17 + # { :device => /dev/sdb } for example
  18 + # @param [String] physical_size '0' will use the whole device (FIXME
  19 + # needs confirmation)
  20 + # @param [String] content_type the type of the SR's content.
  21 + # According to Citrix documentation, used only to distinguish ISO
  22 + # libraries from other SRs. Set it to 'iso' for storage repositories
  23 + # that store a library of ISOs, 'user' or '' (empty) otherwise.
  24 + # @see http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/reference.html#cli-xe-commands_sr
  25 + # @param [String] shared
  26 + #
  27 + # @return [String] an OpaqueRef to the storage repository
12 28 def create_sr( host_ref,
13 29 name_label,
14 30 type,
15   - name_description = nil,
  31 + name_description = '',
16 32 device_config = {},
17 33 physical_size = '0',
18   - content_type = nil,
  34 + content_type = 'user',
19 35 shared = false,
20 36 sm_config = {} )
21 37

0 comments on commit c7f75c8

Please sign in to comment.
Something went wrong with that request. Please try again.