Permalink
Browse files

Change the l_list tuple to properly add SSL cert info if protocol is …

…HTTPS
  • Loading branch information...
1 parent d12c944 commit 21224daae928a7817fc1c485b98fd55a9500594f James Downs committed Feb 22, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/elbadmin
View
@@ -85,7 +85,9 @@ def create(elb, name, zones, listeners):
l_list = []
for l in listeners:
l = l.split(",")
- l_list.append((int(l[0]), int(l[1]), l[2]))
+ if l[2]=='HTTPS':
+ l_list.append((int(l[0]), int(l[1]), l[2], l[3]))
+ else : l_list.append((int(l[0]), int(l[1]), l[2]))
b = elb.create_load_balancer(name, zones, l_list)
return get(elb, name)
@@ -191,6 +193,9 @@ if __name__ == "__main__":
sys.exit(1)
elb = boto.connect_elb()
+
+ print "%s" % (elb.region.endpoint)
+
command = args[0].lower()
if command in ("ls", "list"):
list(elb)

0 comments on commit 21224da

Please sign in to comment.