]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: Remove assignment to member variable in ServiceSpecs 37071/head
authorVolker Theile <vtheile@suse.com>
Wed, 9 Sep 2020 16:08:17 +0000 (18:08 +0200)
committerVolker Theile <vtheile@suse.com>
Wed, 9 Sep 2020 16:08:17 +0000 (18:08 +0200)
Remove unnecessary assignment to member variable 'preview_only', this is done in the constructor of the derived ServiceSpec class.

Fixes: https://tracker.ceph.com/issues/47384
Signed-off-by: Volker Theile <vtheile@suse.com>
src/python-common/ceph/deployment/service_spec.py

index 25d9fa5f525c24cdfc7b6f7936737fcdb9d26749..05a1389f694b196cb2a2cedda164c1e50a41e177 100644 (file)
@@ -589,8 +589,6 @@ class NFSServiceSpec(ServiceSpec):
         #: RADOS namespace where NFS client recovery data is stored in the pool.
         self.namespace = namespace
 
-        self.preview_only = preview_only
-
     def validate(self):
         super(NFSServiceSpec, self).validate()
 
@@ -660,7 +658,6 @@ class RGWSpec(ServiceSpec):
         self.rgw_frontend_ssl_certificate = rgw_frontend_ssl_certificate
         self.rgw_frontend_ssl_key = rgw_frontend_ssl_key
         self.ssl = ssl
-        self.preview_only = preview_only
 
     def get_port(self):
         if self.rgw_frontend_port:
@@ -724,7 +721,6 @@ class IscsiServiceSpec(ServiceSpec):
         self.api_secure = api_secure
         self.ssl_cert = ssl_cert
         self.ssl_key = ssl_key
-        self.preview_only = preview_only
 
         if not self.api_secure and self.ssl_cert and self.ssl_key:
             self.api_secure = True