Skip to content

Commit

Permalink
sonic_installer onie get_next_image() may return wrong index due to w…
Browse files Browse the repository at this point in the history
…rong re search text (#270)
  • Loading branch information
jeromesun14 authored and lguohan committed Jun 26, 2018
1 parent be4f03e commit c5049ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_installer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_next_image():
if m:
next_image_index = int(m.group(1))
else:
m = re.search("saved_entry(\d+)", grubenv)
m = re.search("saved_entry=(\d+)", grubenv)
if m:
next_image_index = int(m.group(1))
else:
Expand Down

0 comments on commit c5049ac

Please sign in to comment.