Refactoring.. with pep8 fixes
This commit is contained in:
parent
fcfaa21a24
commit
38ebeab163
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue