mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
systemvm: for ip route show command don't use the throw command (#3612)
While searching for existing route, don't use the throw keyword when using the cmd with `ip route show`. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
95fbe7c55b
commit
ae61bfee76
@ -79,7 +79,7 @@ class CsRoute:
|
||||
found = False
|
||||
search = cmd
|
||||
if "throw" in search:
|
||||
search = "type " + search
|
||||
search = search.replace("throw", "")
|
||||
for i in CsHelper.execute("ip route show " + search):
|
||||
found = True
|
||||
if not found and method == "add":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user