git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix the way we determine if the PLCAPI is newinterface (AddIpAddress) or not
[tests.git]
/
system
/
TestPlc.py
diff --git
a/system/TestPlc.py
b/system/TestPlc.py
index
f1ecd27
..
eb7a15e
100644
(file)
--- a/
system/TestPlc.py
+++ b/
system/TestPlc.py
@@
-147,7
+147,7
@@
class TestPlc:
self.apiserver=TestApiserver(self.url,options.dry_run)
def has_addresses_api (self):
- return
hasattr(self.apiserver,
'AddIpAddress')
+ return
self.apiserver.has_method(
'AddIpAddress')
def name(self):
name=self.plc_spec['name']