2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Add state info to all licenses

The all resource was not retrieving the licenses.
This commit is contained in:
Jarrod Johnson 2019-06-21 15:52:24 -04:00
parent e55314d759
commit 3501b3c347
2 changed files with 2 additions and 2 deletions

View File

@ -1456,7 +1456,7 @@ class IpmiHandler(object):
if self.op == 'delete':
self.ipmicmd.delete_license(lic['name'])
else:
self.output.put(msg.License(self.node, feature=lic['name']))
self.output.put(msg.License(self.node, feature=lic['name'], state=lic.get('state', 'Active')))
else:
index = int(licname)
lic = list(self.ipmicmd.get_licenses())[index - 1]

View File

@ -1322,7 +1322,7 @@ class IpmiHandler(object):
if self.op == 'delete':
self.ipmicmd.delete_license(lic['name'])
else:
self.output.put(msg.License(self.node, feature=lic['name']))
self.output.put(msg.License(self.node, feature=lic['name'], state=lic.get('state', 'Active')))
else:
index = int(licname)
lic = list(self.ipmicmd.get_licenses())[index - 1]