Convert `extra_args` into a read-only property so that
current code continues to work but anything that tries
to set any `extra_args` now or in the future will be
intentionally broken.
This is mainly to find issues when running unit and teuthology tests.
This patch could be dropped before the final merge if desired.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
# for run_cephadm.
self.keyring: Optional[str] = keyring
+ # FIXME: finish removing this
# For run_cephadm. Would be great to have more expressive names.
- self.extra_args: List[str] = extra_args or []
+ # self.extra_args: List[str] = extra_args or []
+ assert not extra_args
self.ceph_conf = ceph_conf
self.extra_files = extra_files or {}
extra_entrypoint_args=self.extra_entrypoint_args,
)
+ @property
+ def extra_args(self) -> List[str]:
+ return []
+
class CephadmService(metaclass=ABCMeta):
"""