def online(block): try: memory.hotplug(block) except IOError: print "memory%s : Resource is busy" % block pass
def online(block): try: memory.hotplug(block) return "" except IOError: return "memory%s : Resource is busy" % block