def set_qos(self): """ convenient wrapper for these thing until we clean the code up """ if not self.server.has_key("id"): return 1 # meaningless if rhnFault not raised return server_lib.set_qos(self.server["id"])