From 079dfed11eb4837a068edabf6cd0818143156922 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Oct 2018 15:28:03 -0400 Subject: [PATCH] Add type to storage messages Storage messages are likely to be grouped together and need more to disambiguate them. --- confluent_server/confluent/messages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index 28dbfb34..68b8839c 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -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,