diff options
author | Michael Fritch <mfritch@suse.com> | 2020-07-14 15:18:48 +0200 |
---|---|---|
committer | Michael Fritch <mfritch@suse.com> | 2020-07-16 23:02:47 +0200 |
commit | 414e5507034f6380edac78de86419cd98dc59295 (patch) | |
tree | 3b83941f46d305b155cc54743fdabd4bf0be588b /src/pybind/mgr/cephadm/services/nfs.py | |
parent | mgr/cephadm: clean-up service module type checking (diff) | |
download | ceph-414e5507034f6380edac78de86419cd98dc59295.tar.xz ceph-414e5507034f6380edac78de86419cd98dc59295.zip |
mgr/cephadm: clean-up service module type checking
- add return type to `config` func
- add missing `NFSServiceSpec` annotation to `config` func
Signed-off-by: Michael Fritch <mfritch@suse.com>
Diffstat (limited to '')
-rw-r--r-- | src/pybind/mgr/cephadm/services/nfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/mgr/cephadm/services/nfs.py b/src/pybind/mgr/cephadm/services/nfs.py index 54d3e244f2a..a7b3060c5fb 100644 --- a/src/pybind/mgr/cephadm/services/nfs.py +++ b/src/pybind/mgr/cephadm/services/nfs.py @@ -66,7 +66,7 @@ class NFSService(CephadmService): return cephadm_config, deps - def config(self, spec): + def config(self, spec: NFSServiceSpec) -> None: self.mgr._check_pool_exists(spec.pool, spec.service_name()) logger.info('Saving service %s spec with placement %s' % ( spec.service_name(), spec.placement.pretty_str())) |