Refactoring.. with pep8 fixes

This commit is contained in:
Jeremy Heffner 2015-08-20 15:45:53 -07:00
parent fcfaa21a24
commit 38ebeab163
1 changed files with 3 additions and 4 deletions

View File

@ -537,7 +537,7 @@ class ProvisionELB(Command):
from lemur.certificates.views import valid_authority from lemur.certificates.views import valid_authority
authority=valid_authority({"name": authority}) authority = valid_authority({"name": authority})
options = { options = {
'destinations': destinations, 'destinations': destinations,
@ -557,8 +557,7 @@ class ProvisionELB(Command):
return options return options
def run(self, dns, elb, owner, authority, description, notifications, destinations):
def run(self, dns, elb, owner, authority, description, notifications):
from lemur.certificates import service from lemur.certificates import service
# configure the owner if we can find it, or go for default, and put it in the global # configure the owner if we can find it, or go for default, and put it in the global
@ -572,7 +571,7 @@ class ProvisionELB(Command):
sys.stdout.write("cert options: {}\n".format(cert_options)) sys.stdout.write("cert options: {}\n".format(cert_options))
# create the certificate # create the certificate
cert = service.create( **cert_options ) cert = service.create(**cert_options)
sys.stdout.write("cert {}".format(cert)) sys.stdout.write("cert {}".format(cert))