Fix a typo on is_update call inside latest function
Merge pull request #8988 from bbasleeper/bugfix_yum_module

Fix a bug causing yum module to not update to latest in some cases