Skip to content

Commit

Permalink
Merge pull request #2300 from weaveworks/2299-probe-only
Browse files Browse the repository at this point in the history
parse --probe-only as intended

Fixes #2299.
  • Loading branch information
rade authored Mar 5, 2017
2 parents 32550f6 + 0aec6fe commit 6bba59c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.cloud-agent
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN apk add --update bash conntrack-tools iproute2 util-linux curl && \
ADD ./docker /usr/local/bin/
ADD ./weave ./weaveutil /usr/bin/
COPY ./scope /home/weave/
ENTRYPOINT ["/home/weave/scope", "--mode=probe", "--probe-only", "--probe.docker=true"]
ENTRYPOINT ["/home/weave/scope", "--mode=probe", "--no-app", "--probe.docker=true"]
4 changes: 2 additions & 2 deletions prog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ func main() {
// They are also here so they are included in usage, and the probe uses them to decide if to
// publish to localhost.
noApp := flag.Bool("no-app", false, "Don't run the app.")
probeOnly := flag.Bool("app-only", false, "Only run the app")
flag.Bool("probe-only", false, "Only run the probe.")
probeOnly := flag.Bool("probe-only", false, "Only run the app.")
flag.Bool("no-probe", false, "Don't run the probe.")
flag.Bool("app-only", false, "Only run the probe.")

// Probe flags
flag.StringVar(&flags.probe.token, serviceTokenFlag, "", "Token to use to authenticate with cloud.weave.works")
Expand Down

0 comments on commit 6bba59c

Please sign in to comment.