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

Bug - Race condition when requiring oneview-sdk gem on ruby 2.4 #301

Closed
fgbulsoni opened this issue Jan 8, 2018 · 0 comments
Closed

Bug - Race condition when requiring oneview-sdk gem on ruby 2.4 #301

fgbulsoni opened this issue Jan 8, 2018 · 0 comments
Assignees

Comments

@fgbulsoni
Copy link
Contributor

Scenario/Intent

When requiring the 'oneview-sdk' gem on a newly deployed system with ruby 2.4, it randomly hits an 'Uninitialized constant' error.

This seems to be caused by the lack of an explicit require of the "resource_helper.rb" file, before requiring the resources which include the ResourceHelper modules.

Environment Details

  • OneView SDK Version: 5.2.0
  • Ruby Version: 2.4.0
  • Platform: Ubuntu 14.04

Steps to Reproduce

gem install oneview-sdk
irb > require 'oneview-sdk'

Expected Result

true

Actual Result

Uninitialized constant OneviewSDK::ResourceHelper

@fgbulsoni fgbulsoni self-assigned this Jan 8, 2018
@fgbulsoni fgbulsoni changed the title Bug - Race conditition when requiring oneview-sdk gem on ruby 2.4 Bug - Race condition when requiring oneview-sdk gem on ruby 2.4 Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant