mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Change for hide user/pw from api
This commit is contained in:
parent
31817c1da2
commit
2086a0aa48
1 changed files with 9 additions and 0 deletions
|
@ -83,6 +83,15 @@ class Cluster:
|
|||
"type": "PYTHON - API",
|
||||
"value": "Invalid request: {0}".format(e)
|
||||
}
|
||||
|
||||
## Revoir pour un truc plus clean
|
||||
keyv = 0
|
||||
for cluster in result["value"]:
|
||||
for key in cluster:
|
||||
if key == "password" or key == "user":
|
||||
result["value"][keyv][key] = "Information not available"
|
||||
keyv += 1
|
||||
|
||||
return json.dumps(result)
|
||||
|
||||
def POST(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue