You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2017/09/26 13:27:46 UTC

mesos git commit: Added constants for the Mesos CLI.

Repository: mesos
Updated Branches:
  refs/heads/master 7bd7e6c0d -> 1b23456aa


Added constants for the Mesos CLI.

This will be used by future commands and functions of the CLI.

Review: https://reviews.apache.org/r/62572/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1b23456a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1b23456a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1b23456a

Branch: refs/heads/master
Commit: 1b23456aa28f0cf3e12666b5470fcc12e0ddfa34
Parents: 7bd7e6c
Author: Armand Grillet <ag...@mesosphere.io>
Authored: Tue Sep 26 15:27:19 2017 +0200
Committer: Kevin Klues <kl...@gmail.com>
Committed: Tue Sep 26 15:27:19 2017 +0200

----------------------------------------------------------------------
 src/python/cli_new/lib/cli/constants.py | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1b23456a/src/python/cli_new/lib/cli/constants.py
----------------------------------------------------------------------
diff --git a/src/python/cli_new/lib/cli/constants.py b/src/python/cli_new/lib/cli/constants.py
new file mode 100644
index 0000000..c7ea44a
--- /dev/null
+++ b/src/python/cli_new/lib/cli/constants.py
@@ -0,0 +1,25 @@
+# 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.
+
+"""
+A collection of constants useful for the CLI.
+"""
+
+DEFAULT_MASTER_IP = "127.0.0.1"
+DEFAULT_MASTER_PORT = "5050"
+
+DEFAULT_AGENT_IP = "127.0.0.1"
+DEFAULT_AGENT_PORT = "5051"