Commit 75eaf020 authored by Timothy Stack's avatar Timothy Stack

For unknown methods in EmulabServer, include the value of the readonly

bit in the exception message.
parent 490425a9
......@@ -232,7 +232,8 @@ class EmulabServer:
if len(dotted) != 2:
raise AttributeError("Bad name '%s'" % name)
if not self.instances.has_key(dotted[0]):
raise AttributeError("unknown method '%s'" % name)
raise AttributeError("unknown method '%s' (readonly=%d)" %
(name, self.readonly))
return getattr(self.instances[dotted[0]], dotted[1]);
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment