mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
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:
parent
551123f7ca
commit
195494efc0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user