Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
75eaf020
Commit
75eaf020
authored
Nov 29, 2004
by
Timothy Stack
Browse files
For unknown methods in EmulabServer, include the value of the readonly
bit in the exception message.
parent
490425a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlrpc/emulabserver.py.in
View file @
75eaf020
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment