aboutsummaryrefslogtreecommitdiff
path: root/myrpki.rototill
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-03-10 19:15:57 +0000
committerRob Austein <sra@hactrn.net>2010-03-10 19:15:57 +0000
commit70160def5443c0935a92ed6931932898dffe42b9 (patch)
treee399e85110021210198a1d8e5fb18a3227a7b37a /myrpki.rototill
parent9364e4a28739631593933b0cac497e2117cf00fc (diff)
Cleanup
svn path=/myrpki.rototill/myrpki.py; revision=3067
Diffstat (limited to 'myrpki.rototill')
-rw-r--r--myrpki.rototill/myrpki.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/myrpki.rototill/myrpki.py b/myrpki.rototill/myrpki.py
index 37f01c8d..019a1946 100644
--- a/myrpki.rototill/myrpki.py
+++ b/myrpki.rototill/myrpki.py
@@ -937,16 +937,16 @@ class main(rpki.cli.Cmd):
if child_handle is None:
child_handle = c.get("handle")
- if self.run_rpkid:
- service_uri = "https://%s:%s/up-down/%s/%s" % (self.cfg.get("rpkid_server_host"),
- self.cfg.get("rpkid_server_port"),
- self.handle, child_handle)
- else:
- try:
- e = etree_read(self.cfg.get("xml_filename"))
- service_uri = "%s/%s" % (e.get("service_uri"), child_handle)
- except IOError:
- print "Sorry, you can't set up children in a hosted config that itself has not yet been set up"
+ try:
+ e = etree_read(self.cfg.get("xml_filename"))
+ service_uri = "%s/%s" % (e.get("service_uri"), child_handle)
+ except IOError:
+ if self.run_rpkid:
+ service_uri = "https://%s:%s/up-down/%s/%s" % (self.cfg.get("rpkid_server_host"),
+ self.cfg.get("rpkid_server_port"),
+ self.handle, child_handle)
+ else:
+ print "Sorry, you can't set up children of a hosted config that itself has not yet been set up"
return
print "Child calls itself %r, we call it %r" % (c.get("handle"), child_handle)