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 <rtc@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
This commit is contained in:
Paul Stewart 2012-02-22 16:00:40 -08:00 committed by Gerrit
parent 551123f7ca
commit 195494efc0

View File

@ -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