Add tox tests for osm charms in devops
[osm/devops.git] / installers / charm / ng-ui / src / charm.py
index 21102e4..944d8ce 100755 (executable)
@@ -93,7 +93,7 @@ class NgUiCharm(CharmBase):
         Args:
             event (EventBase): NBI relation event.
         """
-        if not event.unit in event.relation.data:
+        if event.unit not in event.relation.data:
             return
         relation_data = event.relation.data[event.unit]
         nbi_host = relation_data.get("host")