Commit 74539278 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Pass through -i option to top run, which says to ignore errors during

the stop, which are caused by the remote agents not doing what they
are supposed to do.
parent 50012a92
......@@ -4848,6 +4848,11 @@ class template:
argstr += " -q "
pass
pass
elif opt == "ignoreerrors":
if xbool(val):
argstr += " -i "
pass
pass
elif opt == "pid":
pid = escapeshellarg(val)
pass
......
......@@ -2182,7 +2182,7 @@ class template_stoprun:
def apply(self):
try:
opts, req_args = getopt.getopt(self.argv, "we:qp:t:", [ "help" ]);
opts, req_args = getopt.getopt(self.argv, "we:qp:t:i", [ "help" ]);
pass
except getopt.error, e:
print e.args[0]
......@@ -2209,6 +2209,9 @@ class template_stoprun:
elif opt == "-t":
params["token"] = val;
pass
elif opt == "-i":
params["ignoreerrors"] = "yes";
pass
elif opt == "-e":
params["exp"] = val;
pass
......@@ -2241,6 +2244,8 @@ class template_stoprun:
print "template_stoprun [-w] -e id [-p <pid> | <guid/vers>]";
print "where:";
print " -e - Instance ID (aka eid)";
print " -i - Ignore errors and force Run to stop";
print " -w - Wait for Run to finish stopping";
print " guid - Template GUID";
print ""
print "Environment:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment