git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied the except and raise fixers to the master branch to close the gap with py3
[nepi.git]
/
src
/
nepi
/
resources
/
planetlab
/
node.py
diff --git
a/src/nepi/resources/planetlab/node.py
b/src/nepi/resources/planetlab/node.py
index
9ef4a19
..
c6f7bde
100644
(file)
--- a/
src/nepi/resources/planetlab/node.py
+++ b/
src/nepi/resources/planetlab/node.py
@@
-661,24
+661,24
@@
class PlanetlabNode(LinuxNode):
def fail_discovery(self):
msg = "Discovery failed. No candidates found for node"
self.error(msg)
def fail_discovery(self):
msg = "Discovery failed. No candidates found for node"
self.error(msg)
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def fail_node_not_alive(self, hostname=None):
msg = "Node %s not alive" % hostname
def fail_node_not_alive(self, hostname=None):
msg = "Node %s not alive" % hostname
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def fail_node_not_available(self, hostname):
msg = "Node %s not available for provisioning" % hostname
def fail_node_not_available(self, hostname):
msg = "Node %s not available for provisioning" % hostname
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def fail_not_enough_nodes(self):
msg = "Not enough nodes available for provisioning"
def fail_not_enough_nodes(self):
msg = "Not enough nodes available for provisioning"
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def fail_plapi(self):
msg = "Failing while trying to instanciate the PLC API.\nSet the" + \
" attributes pluser and plpassword."
def fail_plapi(self):
msg = "Failing while trying to instanciate the PLC API.\nSet the" + \
" attributes pluser and plpassword."
- raise RuntimeError
, msg
+ raise RuntimeError
(msg)
def valid_connection(self, guid):
# TODO: Validate!
def valid_connection(self, guid):
# TODO: Validate!