]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ipaddrs_in_ranges: fix python indent
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 25 Oct 2019 19:52:27 +0000 (15:52 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 28 Oct 2019 08:23:17 +0000 (09:23 +0100)
pycodestyle returns:

 E111 indentation is not a multiple of four

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
plugins/filter/ipaddrs_in_ranges.py

index 1073e7e843c19f4a149c30f62d7be98285bb5fca..92971fad7ae3c897aa7ad35dfb37a77707ac00f9 100644 (file)
@@ -8,23 +8,23 @@ except ImportError:
 
 
 class FilterModule(object):
-   ''' IP addresses within IP ranges '''
+    ''' IP addresses within IP ranges '''
 
-   def ips_in_ranges(self, ip_addresses, ip_ranges):
-       ips_in_ranges = list()
-       for ip_addr in ip_addresses:
-           for ip_range in ip_ranges:
-               if netaddr.IPAddress(ip_addr) in netaddr.IPNetwork(ip_range):
-                   ips_in_ranges.append(ip_addr)
-       return ips_in_ranges
+    def ips_in_ranges(self, ip_addresses, ip_ranges):
+        ips_in_ranges = list()
+        for ip_addr in ip_addresses:
+            for ip_range in ip_ranges:
+                if netaddr.IPAddress(ip_addr) in netaddr.IPNetwork(ip_range):
+                    ips_in_ranges.append(ip_addr)
+        return ips_in_ranges
 
-   def filters(self):
-       if netaddr:
-           return {
-               'ips_in_ranges': self.ips_in_ranges
-           }
-       else:
-           # Need to install python's netaddr for these filters to work
-           raise errors.AnsibleFilterError(
-               "The ips_in_ranges filter requires python's netaddr be "
-               "installed on the ansible controller.")
+    def filters(self):
+        if netaddr:
+            return {
+                'ips_in_ranges': self.ips_in_ranges
+            }
+        else:
+            # Need to install python's netaddr for these filters to work
+            raise errors.AnsibleFilterError(
+                "The ips_in_ranges filter requires python's netaddr be "
+                "installed on the ansible controller.")