From 50d396311c07d0c193d7aa956d8704dfa2b2619d Mon Sep 17 00:00:00 2001 From: Ulas Kozat Date: Fri, 16 Dec 2016 17:05:39 -0800 Subject: JIRA DOMINO-22 Change-Id: Ia2a9d280e28e53df9a50eb85063b5ce437718df8 Signed-off-by: Ulas Kozat --- lib/dominoCLI/ttypes.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'lib/dominoCLI') diff --git a/lib/dominoCLI/ttypes.py b/lib/dominoCLI/ttypes.py index 9794dba..4c23c8d 100644 --- a/lib/dominoCLI/ttypes.py +++ b/lib/dominoCLI/ttypes.py @@ -101,7 +101,7 @@ class CLIResponse: thrift_spec = ( None, # 0 - (1, TType.STRING, 'CLI_response', None, None, ), # 1 + (1, TType.LIST, 'CLI_response', (TType.STRING,None), None, ), # 1 ) def __init__(self, CLI_response=None,): @@ -117,8 +117,13 @@ class CLIResponse: if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.CLI_response = iprot.readString() + if ftype == TType.LIST: + self.CLI_response = [] + (_etype10, _size7) = iprot.readListBegin() + for _i11 in xrange(_size7): + _elem12 = iprot.readString() + self.CLI_response.append(_elem12) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -132,8 +137,11 @@ class CLIResponse: return oprot.writeStructBegin('CLIResponse') if self.CLI_response is not None: - oprot.writeFieldBegin('CLI_response', TType.STRING, 1) - oprot.writeString(self.CLI_response) + oprot.writeFieldBegin('CLI_response', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.CLI_response)) + for iter13 in self.CLI_response: + oprot.writeString(iter13) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() -- cgit 1.2.3-korg