Fix lint
This commit is contained in:
parent
a6c3b85fe1
commit
92a8942727
|
@ -289,10 +289,10 @@ class VaultDestinationPlugin(DestinationPlugin):
|
||||||
t_path = path.format(
|
t_path = path.format(
|
||||||
CN=cname,
|
CN=cname,
|
||||||
OU=organizational_unit(cert),
|
OU=organizational_unit(cert),
|
||||||
O=organization(cert),
|
O=organization(cert), # noqa: E741
|
||||||
L=location(cert),
|
L=location(cert),
|
||||||
S=state(cert),
|
S=state(cert),
|
||||||
C=country(cert)
|
C=country(cert),
|
||||||
)
|
)
|
||||||
if not obj_name:
|
if not obj_name:
|
||||||
obj_name = '{CN}'
|
obj_name = '{CN}'
|
||||||
|
@ -300,14 +300,13 @@ class VaultDestinationPlugin(DestinationPlugin):
|
||||||
f_obj_name = obj_name.format(
|
f_obj_name = obj_name.format(
|
||||||
CN=cname,
|
CN=cname,
|
||||||
OU=organizational_unit(cert),
|
OU=organizational_unit(cert),
|
||||||
O=organization(cert),
|
O=organization(cert), # noqa: E741
|
||||||
L=location(cert),
|
L=location(cert),
|
||||||
S=state(cert),
|
S=state(cert),
|
||||||
C=country(cert)
|
C=country(cert),
|
||||||
)
|
)
|
||||||
|
|
||||||
path = "{0}/{1}".format(t_path, f_obj_name)
|
path = "{0}/{1}".format(t_path, f_obj_name)
|
||||||
# TODO: obj_name support for vars
|
|
||||||
|
|
||||||
secret = get_secret(client, mount, path)
|
secret = get_secret(client, mount, path)
|
||||||
secret["data"][cname] = {}
|
secret["data"][cname] = {}
|
||||||
|
|
Loading…
Reference in New Issue