def online_system(server_id=None): host_info = ServerList() try: query_result = host_info.online_by_id(server_id) flash('Online Server Success', 'success') except CmdbApiCallException, e: flash(e.detail_msg(), 'danger') return render_template('blank.html')