commit 6f7b3035156e94cd0d9fd09070dc821f743385aa
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Apr 21 15:10:47 2015 +0200
Fix "Instance of 'dict' has no 'get_id' member" error
Found with pylint. This needs to be verified by original author of method, olichtne.
Probably method get_id should be called on the master inferface,
which is accessed by self._master['primary'] and not by self._master
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/Machine.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 8da1a10..1671e52 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -553,7 +553,7 @@ class Interface(object):
def add_master(self, master, primary=True):
if primary and self._master["primary"] != None:
msg = "Interface %s already has a primary master."\
- % self._master.get_id()
+ % self._master["primary"].get_id()
raise MachineError(msg)
else:
if primary:
Show replies by thread