From a24433b555d3cf1e2ab1e048dcd7b89fe9af4fe7 Mon Sep 17 00:00:00 2001 From: Dario Faccin Date: Wed, 1 Feb 2023 16:56:28 +0100 Subject: [PATCH] Reformat files according to new black validation Change-Id: Ie550b7a41d14260080c9602df91d646e486e6884 Signed-off-by: Dario Faccin --- installers/charm/kafka-exporter/src/charm.py | 1 - installers/charm/keystone/src/charm.py | 4 ++-- installers/charm/lcm/src/charm.py | 1 - installers/charm/mon/src/charm.py | 1 - installers/charm/nbi/src/charm.py | 1 - installers/charm/pla/src/charm.py | 1 - installers/charm/pol/src/charm.py | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) diff --git a/installers/charm/kafka-exporter/src/charm.py b/installers/charm/kafka-exporter/src/charm.py index ec6eaabe..07a854fd 100755 --- a/installers/charm/kafka-exporter/src/charm.py +++ b/installers/charm/kafka-exporter/src/charm.py @@ -96,7 +96,6 @@ class KafkaEndpoint: class KafkaExporterCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: diff --git a/installers/charm/keystone/src/charm.py b/installers/charm/keystone/src/charm.py index 39a7a007..446d2e0c 100755 --- a/installers/charm/keystone/src/charm.py +++ b/installers/charm/keystone/src/charm.py @@ -248,9 +248,9 @@ class KeystoneCharm(CharmedOsmBase): ): credentials_files_builder = FilesV3Builder() fernet_files_builder = FilesV3Builder() - for (key_id, _) in enumerate(credential_keys): + for key_id, _ in enumerate(credential_keys): credentials_files_builder.add_file(str(key_id), str(key_id), secret=True) - for (key_id, _) in enumerate(fernet_keys): + for key_id, _ in enumerate(fernet_keys): fernet_files_builder.add_file(str(key_id), str(key_id), secret=True) return credentials_files_builder.build(), fernet_files_builder.build() diff --git a/installers/charm/lcm/src/charm.py b/installers/charm/lcm/src/charm.py index 7c644189..5319763f 100755 --- a/installers/charm/lcm/src/charm.py +++ b/installers/charm/lcm/src/charm.py @@ -140,7 +140,6 @@ class ConfigModel(ModelValidator): class LcmCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: diff --git a/installers/charm/mon/src/charm.py b/installers/charm/mon/src/charm.py index db047c0b..9ad49ada 100755 --- a/installers/charm/mon/src/charm.py +++ b/installers/charm/mon/src/charm.py @@ -126,7 +126,6 @@ class ConfigModel(ModelValidator): class MonCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: diff --git a/installers/charm/nbi/src/charm.py b/installers/charm/nbi/src/charm.py index 4aaecb9d..cb47d1ce 100755 --- a/installers/charm/nbi/src/charm.py +++ b/installers/charm/nbi/src/charm.py @@ -118,7 +118,6 @@ class ConfigModel(ModelValidator): class NbiCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: diff --git a/installers/charm/pla/src/charm.py b/installers/charm/pla/src/charm.py index 36a11dcb..d907f0bc 100755 --- a/installers/charm/pla/src/charm.py +++ b/installers/charm/pla/src/charm.py @@ -76,7 +76,6 @@ class ConfigModel(ModelValidator): class PlaCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: diff --git a/installers/charm/pol/src/charm.py b/installers/charm/pol/src/charm.py index 7b92b453..94f6ecb8 100755 --- a/installers/charm/pol/src/charm.py +++ b/installers/charm/pol/src/charm.py @@ -87,7 +87,6 @@ class ConfigModel(ModelValidator): class PolCharm(CharmedOsmBase): - on = KafkaEvents() def __init__(self, *args) -> NoReturn: -- 2.25.1