# Class override not working

**URL:** <https://forum.ansible.com/t/class-override-not-working/12318>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 9, 2013, 3:09pm UTC](https://forum.ansible.com/t/class-override-not-working/12318 "2013-02-09T15:09:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 9, 2013, 3:09pm UTC](https://forum.ansible.com/t/class-override-not-working/12318/1 "2013-02-09T15:09:10Z")

</div>

So the code used is the 'load\_platform\_subclass' code in  
lib/ansible/module\_common.py

get\_platform just calls the python:

&nbsp;&nbsp;&nbsp;&nbsp;return platform.system()

You might wish to debug and see if that is being reported as AIX?

---

<div class="post-metadata">

**Author:** ![Martin\_Adema](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Martin\_Adema](https://forum.ansible.com/u/Martin_Adema)\
**Post date:** [February 14, 2013, 10:36am UTC](https://forum.ansible.com/t/class-override-not-working/12318/2 "2013-02-14T10:36:22Z")

</div>

Found the problem. Made a copy and paste mistake so class definition was AIX(object) in stead of AIX(User).  
Works fine now!
