ManageIQ / manageiq-providers-azure

ManageIQ plugin for the Microsoft Azure provider.
https://azure.microsoft.com
Apache License 2.0
8 stars 60 forks source link

Use lazy_find :key to replace a direct `find()` #516

Closed agrare closed 2 years ago

agrare commented 2 years ago

Rather than use a direct .find() which introduces ordering issues use the :key feature of lazy_find to get the :device after the lazy_find is evaluated

miq-bot commented 2 years ago

Checked commits https://github.com/agrare/manageiq-providers-azure/compare/d56ddc152e19daa387ff979edb8d962d12274202~...e3c31afd0e4d2f85ecb75e798c07418040f4f0ed with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint 4 files checked, 0 offenses detected Everything looks fine. :cake: