commit e0e87362bad2ec2f1eee95382ade5a94ea83b0be
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Apr 21 15:10:49 2015 +0200
Fix "Instance of 'UnusedInterface' has no 'set_driver' member
(but some types could not be inferred)"
Found with pylint. Add dummy set_driver method to UnusedInterface class
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/Machine.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 1671e52..6d791ae 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -951,6 +951,9 @@ class UnusedInterface(Interface):
def initialize(self):
self._machine._rpc_call('set_unmapped_device_down', self._hwaddr)
+ def set_driver(self, driver):
+ pass
+
def configure(self):
pass
Show replies by date