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
71f256c3
Commit
71f256c3
authored
Mar 23, 2004
by
Leigh B. Stoller
Browse files
Minor reorg of error handling when invoking the remote method.
parent
78a6b606
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlrpc/sshxmlrpc_client.py.in
View file @
71f256c3
...
...
@@ -90,7 +90,12 @@ def do_method(server, method_and_args):
#
# Make the call.
#
response
=
apply
(
meth
,
meth_args
)
try
:
response
=
apply
(
meth
,
meth_args
)
pass
except
xmlrpclib
.
Fault
,
e
:
print
e
.
faultString
return
-
1
#
# Parse the Response, which is a Dictionary. See EmulabResponse in the
...
...
@@ -169,12 +174,7 @@ else:
line
=
raw_input
(
"$ "
)
tokens
=
line
.
split
(
" "
)
if
len
(
tokens
)
>=
1
and
len
(
tokens
[
0
])
>
0
:
try
:
print
str
(
do_method
(
server
,
tokens
))
pass
except
xmlrpclib
.
Fault
,
e
:
print
e
.
faultString
pass
print
str
(
do_method
(
server
,
tokens
))
pass
pass
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