aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dominoCLI
diff options
context:
space:
mode:
authorUlas Kozat <ulas.kozat@gmail.com>2016-12-16 17:05:39 -0800
committerUlas Kozat <ulas.kozat@gmail.com>2016-12-16 17:05:39 -0800
commit50d396311c07d0c193d7aa956d8704dfa2b2619d (patch)
treebb31f03b8b680729501383e49f2d4e2866efd931 /lib/dominoCLI
parent7ad811e8d76d004cc55a7b4a4cc8637df260e42d (diff)
JIRA DOMINO-22
Change-Id: Ia2a9d280e28e53df9a50eb85063b5ce437718df8 Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'lib/dominoCLI')
-rw-r--r--lib/dominoCLI/ttypes.py18
1 files changed, 13 insertions, 5 deletions
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()