Closed agrare closed 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
.find()
:key
:device
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:
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