summaryrefslogtreecommitdiff
path: root/bin
diff options
authorJeff Lane <jeffrey.lane@canonical.com>2016-03-03 16:03:31 -0500
committerJeff Lane <jeffrey.lane@canonical.com>2016-03-03 16:03:31 -0500
commit1a9fa0282bef00703cdaec57b928ba10b85e1c7d (patch)
tree1f1ab85a53af09aaced88fdcc07e430c9033e602 /bin
parentd38c1770c167c23ad53c33db7a994e2593e73a3e (diff)
Fixed a bug where the cpu_load_fail_threshold check was causing traceback when just checking info
Diffstat (limited to 'bin')
-rwxr-xr-xbin/network4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/network b/bin/network
index 39f2256..d0d4af3 100755
--- a/bin/network
+++ b/bin/network
@@ -640,7 +640,9 @@ TEST_TARGET_IPERF = iperf-server.example.com
info_parser.set_defaults(func=interface_info)
args = parser.parse_args()
- if args.cpu_load_fail_threshold != 100 and not args.iperf3:
+ if (args.func.__name__ is interface_test and
+ not args.cpu_load_fail_threshold != 100 and
+ not args.iperf3):
parser.error('--cpu-load-fail-threshold can only be set with '
'--iperf3.')