From 195494efc0d4ff4b9c5f1533340a9a50022f05dd Mon Sep 17 00:00:00 2001 From: Paul Stewart Date: Wed, 22 Feb 2012 16:00:40 -0800 Subject: [PATCH] cros_image_to_target: Fix --port option Previously this script never honored the user --port option. BUG=None TEST=Manual: Run with or without --port option Change-Id: I971ee69818a37e6706ce70327b1d243fd78d214d Reviewed-on: https://gerrit.chromium.org/gerrit/16429 Reviewed-by: Ryan Cairns Commit-Ready: Paul Stewart Tested-by: Paul Stewart --- bin/cros_image_to_target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cros_image_to_target.py b/bin/cros_image_to_target.py index 2c614eee0b..91774eb56b 100755 --- a/bin/cros_image_to_target.py +++ b/bin/cros_image_to_target.py @@ -575,7 +575,7 @@ class ChildFinished(Exception): raise self def MakePortList(user_supplied_port): - range_start = 8081 + range_start = user_supplied_port or 8081 port_list = [] if user_supplied_port is not None: range_length = 1