Skip to content

Commit d0acd28

Browse files
authored
Update cli_setup_bootstrap.py
1 parent afa06c7 commit d0acd28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/oci_cli/cli_setup_bootstrap.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ def create_user_session(region='', tenancy_name=None):
139139
# try to set up http server so we can fail early if the required port is in use
140140
try:
141141
# Firstly, we will check if PORT is available or not
142-
BOOTSTRAP_SERVICE_PORT=is_port_available(BOOTSTRAP_SERVICE_PORT)
143-
server_address = ('', BOOTSTRAP_SERVICE_PORT)
142+
boot_strap_service_port=is_port_available(BOOTSTRAP_SERVICE_PORT)
143+
server_address = ('', boot_strap_service_port)
144144
httpd = StoppableHttpServer(server_address, StoppableHttpRequestHandler)
145145
except OSError as e:
146146
if e.errno == errno.EADDRINUSE:
147147
click.echo("Could not complete bootstrap process because port {port} is already in use.".format(
148-
port=BOOTSTRAP_SERVICE_PORT)
148+
port=boot_strap_service_port)
149149
)
150150

151151
sys.exit(1)

0 commit comments

Comments
 (0)