summaryrefslogtreecommitdiffstats
path: root/patches/network-checker/0001-Fixed-typo-in-net-check.patch
blob: 1546dde5792b5c2e27f009b1facf27ca6d39df0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Copyright (c) 2017 Enea AB and others.
:
: All rights reserved. This program and the accompanying materials
: are made available under the terms of the Apache License, Version 2.0
: which accompanies this distribution, and is available at
: http://www.apache.org/licenses/LICENSE-2.0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
From: chko <hkominos>
Date: Tue, 21 Mar 2017 14:51:22 +0100
Subject: [PATCH] Fixed typo in net-check Closes-Bug:#1674724

Change-Id: Ibf35e5ffb1411b998f9ad250b7744c447e16fa71
Signed-off-by: Charalampos Kominos <hkominos@gmail.com>
(cherry picked from commit e5debec9fe2d8f1a99521594ca3bb10de3bb6d13)
---
 network_checker/net_check/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/network_checker/net_check/api.py b/network_checker/net_check/api.py
index defdde0..a4155db 100755
--- a/network_checker/net_check/api.py
+++ b/network_checker/net_check/api.py
@@ -199,7 +199,7 @@ class Actor(object):
         if state.lower() == 'up':
             self.logger.debug('Inteface %s is up', check_iface)
             return True
-        elif state.lower == 'unknown':
+        elif state.lower() == 'unknown':
             self.logger.debug('Inteface %s state is unknown, using ethtool',
                               check_iface)
             ethtool_output = self._execute(['ethtool', check_iface])