From 27c6ac2b663b86a4a85e5d03503233551ce59283 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 12:22:20 -0500 Subject: [PATCH] Lint: W605 invalid escape sequence '\d' This is the only one where forcing an `r` type to the string was required; the remainder of W605 were replaced with character class enclosures. --- node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py index cdae5178..d3952338 100755 --- a/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py +++ b/node-daemon/pvcnoded/dnsmasq-zookeeper-leases.py @@ -39,7 +39,7 @@ def get_zookeeper_key(): print('ERROR: DNSMASQ_BRIDGE_INTERFACE environment variable not found: {}'.format(e), file=sys.stderr) exit(1) # Get the ID of the interface (the digits) - network_vni = re.findall('\d+', interface)[0] + network_vni = re.findall(r'\d+', interface)[0] # Create the key zookeeper_key = '/networks/{}/dhcp4_leases'.format(network_vni) return zookeeper_key