File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1244,7 +1244,7 @@ def version_from_command(self, flag='-v'):
1244
1244
o , e = proc .communicate ()
1245
1245
return o
1246
1246
1247
- def _run_interface (self , runtime ):
1247
+ def _run_interface (self , runtime , correct_return_codes = [ 0 ] ):
1248
1248
"""Execute command via subprocess
1249
1249
1250
1250
Parameters
@@ -1265,7 +1265,7 @@ def _run_interface(self, runtime):
1265
1265
raise IOError ("%s could not be found on host %s" % (self .cmd .split ()[0 ],
1266
1266
runtime .hostname ))
1267
1267
runtime = run_command (runtime , output = self .inputs .terminal_output )
1268
- if runtime .returncode is None or runtime .returncode != 0 :
1268
+ if runtime .returncode is None or runtime .returncode not in correct_return_codes :
1269
1269
self .raise_exception (runtime )
1270
1270
1271
1271
return runtime
You can’t perform that action at this time.
0 commit comments