simplifying user management
This commit is contained in:
parent
b9b2eb0781
commit
9c58388eb2
1 changed files with 5 additions and 3 deletions
|
@ -45,7 +45,7 @@ def inventory(clientid):
|
||||||
email = user['email']
|
email = user['email']
|
||||||
|
|
||||||
response = {}
|
response = {}
|
||||||
for vmid,data in user.items()
|
for vmid,data in user.items():
|
||||||
response[vmid] = data
|
response[vmid] = data
|
||||||
response.pop('id')
|
response.pop('id')
|
||||||
response.pop('email')
|
response.pop('email')
|
||||||
|
@ -93,8 +93,10 @@ def writeclientsdb(clientsdb):
|
||||||
dbw.close()
|
dbw.close()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__'
|
if __name__ == '__main__':
|
||||||
setencpasswd('fqdn', '123456')
|
inventory(1)
|
||||||
|
print('---')
|
||||||
|
inventory(2)
|
||||||
|
|
||||||
|
|
||||||
#def validate(clientemail, password):
|
#def validate(clientemail, password):
|
||||||
|
|
Loading…
Reference in a new issue