Skip to content

Commit

Permalink
M #: fix OCA accounting default parameters (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Nov 26, 2021
1 parent ce2d741 commit c7eba97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/oca/ruby/opennebula/virtual_machine_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ def showback_xml(filter_flag=INFO_ALL, options={})
private

def build_accounting(filter_flag, options, &block)

options[:start_time] = -1 if options[:start_time].nil?
options[:end_time] = -1 if options[:end_time].nil?

xml_str = @client.call(VM_POOL_METHODS[:accounting],
filter_flag,
options[:start_time],
Expand Down

0 comments on commit c7eba97

Please sign in to comment.