]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: trailing whitespace (W291)
authorSage Weil <sage@newdream.net>
Mon, 15 Mar 2021 21:45:32 +0000 (16:45 -0500)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:16 +0000 (07:56 -0500)
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 1870056fa50c833d9ab545a35437013bf4bea74a)

# Conflicts:
# src/cephadm/cephadm
  - whitespace

Signed-off-by: Sage Weil <sage@newdream.net>
src/cephadm/cephadm
src/cephadm/tox.ini

index 5299965b7e9f308ffdb4a13d4fa9e910d340483e..db23311a6b7c1e08d9071623398a8a7675532306 100755 (executable)
@@ -144,7 +144,7 @@ class CephadmContext:
         if "_conf" in self.__dict__ and hasattr(self._conf, name):
             return getattr(self._conf, name)
         elif "_args" in self.__dict__ and hasattr(self._args, name):
-            return getattr(self._args, name)        
+            return getattr(self._args, name)
         else:
             return super().__getattribute__(name)
 
@@ -3253,7 +3253,7 @@ def check_subnet(subnets: str) -> Tuple[int, List[int], str]:
     """
 
     rc = 0
-    versions = set() 
+    versions = set()
     errors = []
     subnet_list = subnets.split(',')
     for subnet in subnet_list:
@@ -3374,7 +3374,7 @@ def prepare_mon_addresses(
 def prepare_cluster_network(ctx: CephadmContext) -> Tuple[str, bool]:
     cluster_network = ""
     ipv6_cluster_network = False
-    # the cluster network may not exist on this node, so all we can do is 
+    # the cluster network may not exist on this node, so all we can do is
     # validate that the address given is valid ipv4 or ipv6 subnet
     if ctx.cluster_network:
         rc, versions, err_msg = check_subnet(ctx.cluster_network)
@@ -6454,6 +6454,7 @@ class CephadmCache:
         self.host = {}
         self.lock = RLock()
 
+
     @property
     def health(self):
         return {
index db34721d1f898deb85eb8c36fa47285b27bb1768..e3365174d7678232e316e990e3005fa97f4fb8a7 100644 (file)
@@ -6,7 +6,6 @@ skipsdist=true
 max-line-length = 100
 ignore =
     E501,
-    W291,
     W293,
     W503,
     W504,