Skip to content

Commit

Permalink
Examples styling and synatx fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyothis Gireesan Mini committed Mar 16, 2018
1 parent 33aa01e commit 74d827b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/shared_samples/logical_enclosure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
options = {
name: 'OneViewSDK Test Logical Enclosure',
forceInstallFirmware: false,
firmwareBaselineUri: nil
firmwareBaselineUri: nil,
initialScopeUris: ['/rest/scopes/a5f8ca3d-2cea-4f82-b880-344572eb7271', '/rest/scopes/e0f6b95a-67a6-4718-b42c-1f7d426b730c']
}

Expand Down Expand Up @@ -81,9 +81,12 @@

if @client.api_version >= 600
# Gets a logical enclosure by scopeUris
puts "\nGets a logical enclosure with uri '#{log_encl_uri}'"
item4 = logical_enclosure_class.get_all_with_query(@client, {"scopeUris": "/rest/scopes/a5f8ca3d-2cea-4f82-b880-344572eb7271"})
puts "Found logical enclosure '#{item3[:uri]}'."
query = {
scopeUris: '/rest/scopes/a5f8ca3d-2cea-4f82-b880-344572eb7271'
}
puts "\nGets a logical enclosure with scope '#{query[:scopeUris]}'"
item4 = logical_enclosure_class.get_all_with_query(@client, query)
puts "Found logical enclosure '#{item4}'."
end

puts "\nUpdating a logical enclosure with the name = '#{item3['name']}'."
Expand Down

0 comments on commit 74d827b

Please sign in to comment.