mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 19:40:12 +00:00
Add type to storage messages
Storage messages are likely to be grouped together and need more to disambiguate them.
This commit is contained in:
parent
d836bf7298
commit
079dfed11e
@ -1315,6 +1315,7 @@ class Array(ConfluentMessage):
|
||||
id=None, capacity=None, available=None):
|
||||
self.kvpairs = {
|
||||
name: {
|
||||
'type': 'array',
|
||||
'disks': disks,
|
||||
'raid': raid,
|
||||
'id': id,
|
||||
@ -1328,6 +1329,7 @@ class Volume(ConfluentMessage):
|
||||
def __init__(self, name, volname, size, state, array):
|
||||
self.kvpairs = {
|
||||
name: {
|
||||
'type': 'volume',
|
||||
'name': volname,
|
||||
'size': size,
|
||||
'state': state,
|
||||
@ -1362,6 +1364,7 @@ class Disk(ConfluentMessage):
|
||||
state = self._normalize_state(state)
|
||||
self.kvpairs = {
|
||||
name: {
|
||||
'type': 'disk',
|
||||
'label': label,
|
||||
'description': description,
|
||||
'diskid': diskid,
|
||||
|
Loading…
Reference in New Issue
Block a user