From 1b9442bf502078e1aa98b5fd3ef452c2f2edd7aa Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Tue, 3 Oct 2017 20:10:44 -0400 Subject: [PATCH] Fixed missing default value issue in Mesos master command line argument. --- scheduler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler.go b/scheduler.go index 13f1b26..3b64651 100644 --- a/scheduler.go +++ b/scheduler.go @@ -15,7 +15,7 @@ import ( "time" ) -var master = flag.String("master", "Location of leading Mesos master -- :") +var master = flag.String("master", "", "Location of leading Mesos master -- :") var tasksFile = flag.String("workload", "", "JSON file containing task definitions") var wattsAsAResource = flag.Bool("wattsAsAResource", false, "Enable Watts as a Resource. "+ "This allows the usage of the Watts attribute (if present) in the workload definition during offer matching.") @@ -31,7 +31,7 @@ var listSchedPolicies = flag.Bool("listSchedPolicies", false, "Names of the plua // Short hand args. func init() { - flag.StringVar(master, "m", ":5050", "Location of leading Mesos master (shorthand)") + flag.StringVar(master, "m", "", "Location of leading Mesos master (shorthand)") flag.StringVar(tasksFile, "w", "", "JSON file containing task definitions (shorthand)") flag.BoolVar(wattsAsAResource, "waar", false, "Enable Watts as a Resource. "+ "This allows the usage of the Watts attribute (if present) in the workload definition during offer matching. (shorthand)")