This is an automated email from the ASF dual-hosted git repository. klueska pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push: new fee4803 Removed unused `lib/cli/tasks.py` for new CLI. fee4803 is described below commit fee4803635776b8401a6deea3fd9b3d4133d30bc Author: Armand Grillet <agril...@mesosphere.io> AuthorDate: Mon Oct 8 09:29:16 2018 -0400 Removed unused `lib/cli/tasks.py` for new CLI. This file was introduced accidentally as part of 051a138d08ba3b9e28fd6ec4e4f707cbd4bb1563 Review: https://reviews.apache.org/r/68949/ --- src/python/cli_new/lib/cli/tasks.py | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/python/cli_new/lib/cli/tasks.py b/src/python/cli_new/lib/cli/tasks.py deleted file mode 100644 index 531e001..0000000 --- a/src/python/cli_new/lib/cli/tasks.py +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -""" -Functions to handle tasks. -""" - -from cli import http -from cli.exceptions import CLIException - -def get_tasks(master): - """ - Get the tasks in a Mesos cluster. - """ - try: - return http.get_json(master, "tasks")["tasks"] - except Exception as exception: - raise CLIException("Could not open '/tasks'" - " endpoint at '{addr}': {error}" - .format(addr=master, error=exception))