X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fnbi%2Fsrc%2Fpod_spec.py;h=b6291d426e0eb76bc1dbb76ecf9f8faebbcf7b90;hb=958cf65b0f744ddacee2c2d1173b9a9be722661b;hp=77fff3e366559f01582a6b1194c090b572c8ea0b;hpb=af9dcc25ef54986394d3ad19b228cf3d299b48c7;p=osm%2Fdevops.git diff --git a/installers/charm/nbi/src/pod_spec.py b/installers/charm/nbi/src/pod_spec.py index 77fff3e3..b6291d42 100644 --- a/installers/charm/nbi/src/pod_spec.py +++ b/installers/charm/nbi/src/pod_spec.py @@ -101,7 +101,7 @@ def _validate_data( "database_commonkey": lambda value, _: isinstance(value, str) and len(value) > 1, "log_level": lambda value, _: isinstance(value, str) - and (value == "INFO" or value == "DEBUG"), + and value in ("INFO", "DEBUG"), "auth_backend": lambda value, _: isinstance(value, str) and (value == "internal" or value == "keystone"), "site_url": lambda value, _: isinstance(value, str) @@ -270,7 +270,7 @@ def _make_pod_ingress_resources( annotations = { "nginx.ingress.kubernetes.io/proxy-body-size": "{}".format( - max_file_size + "m" if max_file_size > 0 else max_file_size + str(max_file_size) + "m" if max_file_size > 0 else max_file_size ), "nginx.ingress.kubernetes.io/backend-protocol": "HTTPS", }