mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
python3 way to get a list of dict keys
This commit is contained in:
parent
7a947dbce1
commit
dc6033c399
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class PortsDiagnoser(Diagnoser):
|
|||
for ipversion in ipversions:
|
||||
try:
|
||||
r = Diagnoser.remote_diagnosis(
|
||||
"check-ports", data={"ports": ports.keys()}, ipversion=ipversion
|
||||
"check-ports", data={"ports": list(ports)}, ipversion=ipversion
|
||||
)
|
||||
results[ipversion] = r["ports"]
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue