# Bug? In Yum module, under CentOS 6.6 - plugins not loaded

**URL:** <https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056>\
**Category:** Ansible Project\
**Created:** [August 19, 2015, 3:35pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056 "2015-08-19T15:35:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Coulter](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@Eric\_Coulter](https://forum.ansible.com/u/Eric_Coulter)\
**Post date:** [August 19, 2015, 3:35pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056/1 "2015-08-19T15:35:20Z")

</div>

On a machine running CentOS 6.6, and the Rocks cluster management software,  
with Python 2.6.6, yum version 3.2.29,  
I get the following errors from running one of the example plays in the yum module:

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [August 20, 2015, 10:19pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056/2 "2015-08-20T22:19:58Z")

</div>

I haven't seen that either. I could make that check for 'rhnplugin'  
in my.plugins more robust in case of an exception but I'm not sure  
what would cause it in the first place.

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [August 20, 2015, 10:44pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056/3 "2015-08-20T22:44:50Z")

</div>

Okay, I've just pushed a commit that should fix the traceback:  
[https://github.com/ansible/ansible-modules-core/commit/4721d6d8b5e251054b01ddaf8bb852e8204c2c9f](https://github.com/ansible/ansible-modules-core/commit/4721d6d8b5e251054b01ddaf8bb852e8204c2c9f)

the commit assumes that if there's no \_plugins attribute then we don't  
have the rhnplugin enabled. That seems reasonable but it is just an  
assumption. Hopefully it proves correct in practice.

-Toshio

---

<div class="post-metadata">

**Author:** ![Eric\_Coulter](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@Eric\_Coulter](https://forum.ansible.com/u/Eric_Coulter)\
**Post date:** [August 21, 2015, 4:02pm UTC](https://forum.ansible.com/t/bug-in-yum-module-under-centos-6-6-plugins-not-loaded/19056/4 "2015-08-21T16:02:56Z")

</div>

Awesome! The new commit does work on my system. I really appreciate your quick response.

Thanks a lot!

Eric C.
