Fix OpenWrt hostapd regex warning
This commit is contained in:
@@ -353,7 +353,7 @@ async def get_openwrt_status(cfg: dict[str, Any]) -> str:
|
||||
ifnames = _extract_ifnames(wireless)
|
||||
ifname_meta = _extract_ifname_meta(wireless)
|
||||
rc_l, out_l = await run_cmd_full(
|
||||
ssh_cmd + ["sh", "-c", "ubus -S list | awk -F. '/^hostapd\.phy/{print $2}'"],
|
||||
ssh_cmd + ["sh", "-c", r"ubus -S list | awk -F. '/^hostapd\.phy/{print $2}'"],
|
||||
timeout=timeout_sec + 15,
|
||||
)
|
||||
if rc_l == 0 and out_l.strip():
|
||||
|
||||
Reference in New Issue
Block a user