-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update helper.rb #13
Update helper.rb #13
Conversation
fix_device_mapping should return nil where fixed_device does not match /dev/xvd. This should fix creating ephemeral for m2.2xlarge.
Can one of the admins verify this patch? |
@rs-cookbooks-ci test this please |
@autrejacoupa could you fix the spec so that it tests this behavior. I think it should be as easy as adding an |
Update the test case to make sure Chef:Log return is not added to the list of devices.
@douglaswth regarding spec, not sure how to mock what Chef client on runtime was returning, which is /dev/xvdb and more stuff : ["/dev/xvdb", [#<Logger:0x00000003282000 progname=nil, level=2, default_formatter=...........mon_mutex=#Mutex:0x00000003281a10>>>]]. I did change the spec "skips the devices that cannot be mapped" so that log output does not get into the array of return devices. Thanks |
It looks like what |
Chef:Log:warn returns array, make sure that array is not part of device list.
Done |
@rs-cookbooks-ci test this please |
@rs-cookbooks-ci test this please, and don't fail for weird test-kitchen/vagrant bugs this time, please 😦 |
fix_device_mapping should return nil where fixed_device does not match /dev/xvd. This should fix creating ephemeral for m2.2xlarge.
fix_device_mapping should return nil where fixed_device does not match /dev/xvd. This should fix creating ephemeral for m2.2xlarge.