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