Skip to content

Commit

Permalink
Fix osutil/default route_add to pass string array.
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta committed Feb 28, 2024
1 parent 6de4652 commit 065849b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/common/osutil/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ def route_add(self, net, mask, gateway): # pylint: disable=W0613
Add specified route
"""
try:
cmd = ["ip", "route", "add", net, "via", gateway]
cmd = ["ip", "route", "add", str(net), "via", gateway]
return shellutil.run_command(cmd)
except CommandError:
return ""
Expand Down

0 comments on commit 065849b

Please sign in to comment.