git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blind 2to3
[plcapi.git]
/
PLC
/
Methods
/
DeleteInterfaceTag.py
diff --git
a/PLC/Methods/DeleteInterfaceTag.py
b/PLC/Methods/DeleteInterfaceTag.py
index
5ef9635
..
164ba53
100644
(file)
--- a/
PLC/Methods/DeleteInterfaceTag.py
+++ b/
PLC/Methods/DeleteInterfaceTag.py
@@
-38,7
+38,7
@@
class DeleteInterfaceTag(Method):
def call(self, auth, interface_tag_id):
interface_tags = InterfaceTags(self.api, [interface_tag_id])
if not interface_tags:
def call(self, auth, interface_tag_id):
interface_tags = InterfaceTags(self.api, [interface_tag_id])
if not interface_tags:
- raise PLCInvalidArgument
, "No such interface tag %r"%interface_tag_id
+ raise PLCInvalidArgument
("No such interface tag %r"%interface_tag_id)
interface_tag = interface_tags[0]
tag_type_id = interface_tag['tag_type_id']
interface_tag = interface_tags[0]
tag_type_id = interface_tag['tag_type_id']
@@
-46,7
+46,7
@@
class DeleteInterfaceTag(Method):
interfaces = Interfaces (self.api, interface_tag['interface_id'])
if not interfaces:
interfaces = Interfaces (self.api, interface_tag['interface_id'])
if not interfaces:
- raise PLCInvalidArgument
, "No such interface %d"%interface_tag['interface_id']
+ raise PLCInvalidArgument
("No such interface %d"%interface_tag['interface_id'])
interface=interfaces[0]
# check authorizations
interface=interfaces[0]
# check authorizations