Skip to content

Commit c9505bf

Browse files
Enrico Usaidemartinofra
authored andcommitted
Fix error message when unable to get ip address
Signed-off-by: Enrico Usai <[email protected]>
1 parent 5904696 commit c9505bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/pcluster/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def _get_master_server_ip(stack_name):
422422
ip_address = instance.get("PrivateIpAddress")
423423
state = instance.get("State").get("Name")
424424
if state != "running" or ip_address is None:
425-
error("MasterServer: %s\nCannot get ip address.", state.upper())
425+
error("MasterServer: {0}\nCannot get ip address.".format(state.upper()))
426426
return ip_address
427427

428428

0 commit comments

Comments
 (0)