@psav: I initialize UNREGISTER to True on line 17. Probably would make more sense if this was in the yaml file instead. Its whole purpose is to give you a choice, if you want to unregister appliances, or not.

@psav, @seandst: I wrote this method to unregister appliances from rhsm after the testing (so I don't have to do it manually). The reason why it won't work with satellite 5 is because satellite 5 uses rhn classic as opposed to certificate-based rhsm and satellite 6. Thus, command like 'subscription-manager unregister' makes on satellite 5 no sense. To my knowledge, you cannot unregister a system from rhn classic - you can only make the system think, that it is unregistered (which is useless for me).