2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-13 11:17:49 +00:00

Add support for expiration data, when available

This commit is contained in:
Jarrod Johnson 2019-07-09 10:55:33 -04:00
parent 373bf3dca7
commit fd9b4a8650

View File

@ -1253,14 +1253,15 @@ class AsyncSession(ConfluentMessage):
self.kvpairs = {'asyncid': id}
class User(ConfluentMessage):
def __init__(self, uid, username, privilege_level, name=None):
def __init__(self, uid, username, privilege_level, name=None, expiration=None):
self.desc = 'foo'
self.stripped = False
self.notnode = name is None
kvpairs = {'username': {'value': username},
'password': {'value': '', 'type': 'password'},
'privilege_level': {'value': privilege_level},
'enabled': {'value': ''}
'enabled': {'value': ''},
'expiration': {'value': expiration},
}
if self.notnode:
self.kvpairs = kvpairs