mirror of
https://github.com/bashclub/check-unifi-controller.git
synced 2025-01-26 07:29:58 +01:00
adds r to make regex a raw string
This commit is contained in:
parent
8863966ce7
commit
29c7352a5e
@ -438,7 +438,7 @@ class unifi_controller(unifi_object):
|
||||
for _dev in self._UNIFI_DEVICES:
|
||||
_dev._get_uplink()
|
||||
if hasattr(self,"cloudkey_version"):
|
||||
self.cloudkey_version = re.sub(".*?v(\d+\.\d+\.\d+\.[a-z0-9]+).*","\\1",self.cloudkey_version)
|
||||
self.cloudkey_version = re.sub(r".*?v(\d+\.\d+\.\d+\.[a-z0-9]+).*","\\1",self.cloudkey_version)
|
||||
self.type = getattr(self,"ubnt_device_type","unifi-sw-controller")
|
||||
self.controller_version = self.version
|
||||
delattr(self,"version")
|
||||
|
Binary file not shown.
BIN
unifi_controller-0.88.3.mkp
Normal file
BIN
unifi_controller-0.88.3.mkp
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user