]:
raise CharmError("invalid value for log-level option")
+ refresh_period = self.config.get("period_refresh_active")
+ if refresh_period and refresh_period < 60 and refresh_period != -1:
+ raise ValueError(
+ "Refresh Period is too tight, insert >= 60 seconds or disable using -1"
+ )
+
def _check_relations(self) -> None:
"""Validate charm relations.
"OSMRO_STORAGE_PATH": "/app/storage",
"OSMRO_STORAGE_COLLECTION": "files",
"OSMRO_STORAGE_URI": self.mongodb_client.connection_string,
+ "OSMRO_PERIOD_REFRESH_ACTIVE": self.config.get("period_refresh_active")
+ or 60,
},
}
},