Skip to content

Commit

Permalink
Passing the header default on the super call in volume template
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexmonteiro committed Nov 9, 2017
1 parent 1f8c86c commit f0035d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/oneview-sdk/resource/api200/volume_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ def initialize(client, params = {}, api_ver = nil)
# @raise [OneviewSDK::IncompleteResource] if the client is not set
# @raise [StandardError] if the resource creation fails
# @return [Resource] self
def create(header = DEFAULT_REQUEST_HEADER)
super(header)
def create(header = {})
super(header.merge(DEFAULT_REQUEST_HEADER))
end

# Deletes the volume template from OneView
# @param [Hash] header The header options for the request (key-value pairs)
# @return [TrueClass] if the volume template was deleted successfully
def delete(header = DEFAULT_REQUEST_HEADER)
super(header)
def delete(header = {})
super(header.merge(DEFAULT_REQUEST_HEADER))
end

# Updates the volume template from OneView
Expand Down

0 comments on commit f0035d7

Please sign in to comment.