MCPcopy Create free account
hub / github.com/ceph/ceph / validate

Method validate

src/python-common/ceph/deployment/service_spec.py:689–695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

687 return f'CustomConfig({self.mount_path})'
688
689 def validate(self) -> None:
690 if not isinstance(self.content, str):
691 raise SpecValidationError(
692 f'CustomConfig content must be a string. Got {type(self.content)}')
693 if not isinstance(self.mount_path, str):
694 raise SpecValidationError(
695 f'CustomConfig content must be a string. Got {type(self.mount_path)}')
696
697
698@contextmanager

Callers 1

__init__Method · 0.95

Calls 2

SpecValidationErrorClass · 0.90
typeEnum · 0.50

Tested by

no test coverage detected