Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B #1710: fix bug when parent_id is empty #3405

Merged
merged 1 commit into from
Jun 5, 2019
Merged

Conversation

al3xhh
Copy link
Contributor

@al3xhh al3xhh commented Jun 5, 2019

Applies to 5.8 and master.

@rsmontero rsmontero merged commit 7dc16bf into OpenNebula:master Jun 5, 2019
rsmontero pushed a commit that referenced this pull request Jun 5, 2019
@al3xhh al3xhh deleted the 050619 branch June 10, 2019 10:34
if !parent_id.nil?
vnet_usage[parent_id] = 0 if vnet_usage[parent_id].nil?
vnet_usage[parent_id] += size
next if parent_id.nil? || parent_id.empty?
Copy link

@screenlock screenlock Aug 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct ? Pass if its nil or empty, better is not (nil or empty)
478 next if !(parent_id.nil? || parent_id.empty?)
i think

rsmontero pushed a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Ángel Cívico Martos <[email protected]>
rsmontero pushed a commit that referenced this pull request Feb 4, 2025
Signed-off-by: Ángel Cívico Martos <[email protected]>
(cherry picked from commit 8384884)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants