Repository: mesos Updated Branches: refs/heads/master bce515f3d -> 057fd2c67
Strip whitespace on dns resolve. Review: https://reviews.apache.org/r/52993/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/057fd2c6 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/057fd2c6 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/057fd2c6 Branch: refs/heads/master Commit: 057fd2c671f4146167d9a63e38e3629090822922 Parents: bce515f Author: Ronald Petty <ronald.pe...@gmail.com> Authored: Tue Oct 18 13:22:17 2016 -0700 Committer: Vinod Kone <vinodk...@gmail.com> Committed: Tue Oct 18 13:22:17 2016 -0700 ---------------------------------------------------------------------- src/python/cli/src/mesos/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/057fd2c6/src/python/cli/src/mesos/cli.py ---------------------------------------------------------------------- diff --git a/src/python/cli/src/mesos/cli.py b/src/python/cli/src/mesos/cli.py index f342992..4a9b558 100644 --- a/src/python/cli/src/mesos/cli.py +++ b/src/python/cli/src/mesos/cli.py @@ -51,7 +51,7 @@ def resolve(master): raise Exception('Failed to execute \'mesos-resolve %s\':\n%s' % (master, process.stderr.read())) - result = process.stdout.read() + result = process.stdout.read().strip() process.stdout.close() process.stderr.close() return result