]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Changing DNS validation output
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 15 Jul 2024 13:57:13 +0000 (15:57 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 15 Jul 2024 13:57:13 +0000 (15:57 +0200)
lib/create_terraform/__init__.py
lib/create_terraform/handler/dns.py

index ddff6c59c49453903e548d9f126de6c5238ce7de..82e9506771f04ceead82783b993cbe7414914233 100644 (file)
@@ -4,7 +4,7 @@
 __version__ = '1.10.0'
 
 MIN_VERSION_TERRAFORM = '1.6.5'
-MAX_VERSION_TERRAFORM = '1.9.0'
+MAX_VERSION_TERRAFORM = '1.11.0'
 
 MIN_VERSION_VSPHERE_PROVIDER = '2.5.1'
 
index 837a7fff5e9d57584b65e7560ce772f9eaca33fa..0e052012500bb754daed2de9845384eac96a8f9c 100644 (file)
@@ -206,7 +206,8 @@ class CrTfHandlerDnsMixin():
         has_address_errors = False
         if self.dns_mappings2create['forward']:
             for pair in self.dns_mappings2create['forward']:
-                line = asterisk + '{n!r} => {a!r}'.format(n=pair[0], a=str(pair[1]))
+                line = asterisk + "'" + self.colored(pair[0], 'aqua') + "'"
+                line += " => '" + self.colored(str(pair[1]), 'aqua') + "'"
                 lines.append(line)
         else:
             lines.append(three_gt + self.colored(_('None'), 'AQUA') + three_lt)
@@ -220,8 +221,9 @@ class CrTfHandlerDnsMixin():
         lines = []
         if self.dns_mappings2create['reverse']:
             for pair in self.dns_mappings2create['reverse']:
-                line = asterisk + '{r} ({a!r}) => {n!r}'.format(
-                    r=pair[0].reverse_pointer, n=pair[1], a=str(pair[0]))
+                line = asterisk + self.colored(str(pair[0].reverse_pointer), 'aqua')
+                line += " ({!r}) => '".format(str(pair[0]))
+                line +=+ self.colored(str(pair[1]), 'aqua') + "'"
                 lines.append(line)
         else:
             lines.append(three_gt + self.colored(_('None'), 'AQUA') + three_lt)