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
89eac76e
Commit
89eac76e
authored
Dec 20, 2004
by
Leigh B. Stoller
Browse files
Add --path= argument to bypass current problem with devel server
loading emulabserver.py from the main tree.
parent
2bdd9c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
xmlrpc/sslxmlrpc_client.py.in
View file @
89eac76e
...
...
@@ -47,6 +47,9 @@ xmlrpc_port = XMLRPC_PORT
# The default RPC module to invoke.
module
=
"experiment"
# The default path
path
=
TBROOT
# Where to find the default certificate in the users home dir.
default_cert
=
"/.ssl/emulab.pem"
certificate
=
None
;
...
...
@@ -170,7 +173,7 @@ try:
opts
,
req_args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"dhVc:s:m:p:r"
,
[
"help"
,
"version"
,
"rawmode"
,
"server="
,
"module="
,
"cert="
,
"port="
])
"cert="
,
"port="
,
"path="
])
# ... act on them appropriately, and
for
opt
,
val
in
opts
:
if
opt
in
(
"-h"
,
"--help"
):
...
...
@@ -202,6 +205,9 @@ try:
elif
opt
in
(
"-d"
,
"--debug"
):
debug
=
1
pass
elif
opt
in
(
"--path"
,):
path
=
val
pass
elif
opt
in
(
"-r"
,
"--rawmode"
):
rawmode
=
1
pass
...
...
@@ -268,7 +274,7 @@ ctx.set_verify(SSL.verify_none, 16)
ctx
.
set_allow_unknown_ca
(
0
)
# This is parsed by the Proxy object.
URI
=
"https://"
+
xmlrpc_server
+
":"
+
str
(
xmlrpc_port
)
+
TBROOT
URI
=
"https://"
+
xmlrpc_server
+
":"
+
str
(
xmlrpc_port
)
+
path
if
debug
:
print
>>
sys
.
stderr
,
URI
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