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:
parent
373bf3dca7
commit
fd9b4a8650
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user