def freeze(unschedule, server): """Freeze server, optionally unscheduling apps.""" masterapi.update_server_state( context.GLOBAL.zk.conn, server, 'frozen', unschedule )
def down(server): """Mark server down.""" masterapi.update_server_state(context.GLOBAL.zk.conn, server, 'down')
def up(server): # pylint: disable=C0103 """Mark server up.""" masterapi.update_server_state(context.GLOBAL.zk.conn, server, 'up')