(self)
| 309 | self.cached_registry_proto.project_metadata = [] |
| 310 | |
| 311 | def clone(self) -> "Registry": |
| 312 | new_registry = Registry("project", None, None, self._auth_config) |
| 313 | new_registry.cached_registry_proto_ttl = timedelta(seconds=0) |
| 314 | new_registry.cached_registry_proto = ( |
| 315 | self.cached_registry_proto.__deepcopy__() |
| 316 | if self.cached_registry_proto |
| 317 | else RegistryProto() |
| 318 | ) |
| 319 | new_registry.cached_registry_proto_created = _utc_now() |
| 320 | new_registry._registry_store = NoopRegistryStore() |
| 321 | return new_registry |
| 322 | |
| 323 | def update_infra(self, infra: Infra, project: str, commit: bool = True): |
| 324 | self._prepare_registry_for_changes(project) |
nothing calls this directly
no test coverage detected