From: Frank Brehm Date: Mon, 16 Dec 2019 17:25:07 +0000 (+0100) Subject: Fixing regex X-Git-Tag: 1.4.3~1^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=9e2b3a8bfe75098993a267fa837d5062bcabf7d1;p=pixelpark%2Fcreate-terraform.git Fixing regex --- diff --git a/lib/cr_tf/terraform/vm.py b/lib/cr_tf/terraform/vm.py index 9b050f0..e8c3868 100644 --- a/lib/cr_tf/terraform/vm.py +++ b/lib/cr_tf/terraform/vm.py @@ -37,7 +37,7 @@ from .disk import TerraformDisk, TerraformDiskDict from .interface import TerraformInterface -__version__ = '1.5.1' +__version__ = '1.5.2' LOG = logging.getLogger(__name__) @@ -117,7 +117,7 @@ class TerraformVm(HandlingObject): re_key_env = re.compile(r'^\s*env(?:ironment)?\s*$', re.IGNORECASE) re_key_ns = re.compile(r'^\s*nameservers?\s*$', re.IGNORECASE) re_key_searchdomain = re.compile(r'^\s*search[_-]*domains?\s*$', re.IGNORECASE) - re_key_dnsoptions = re.compile(r'^\s*(dns|resolv)[_-]*options?*$', re.IGNORECASE) + re_key_dnsoptions = re.compile(r'^\s*(dns|resolv)[_-]*options?\s*$', re.IGNORECASE) re_key_root_disk = re.compile(r'^\s*root[_-]?disk\s*$', re.IGNORECASE) re_key_root_disk_size = re.compile(r'^\s*root[_-]?disk[_-]?size\s*$', re.IGNORECASE) re_key_data_disk = re.compile(r'^\s*data[_-]?disk\s*$', re.IGNORECASE)