Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:36371 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758278Ab2FAVBh (ORCPT ); Fri, 1 Jun 2012 17:01:37 -0400 From: andros@netapp.com To: iisaman@netapp.com Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH 2/6] PYNFS fix rpcgen Date: Tue, 29 May 2012 17:57:55 -0400 Message-Id: <1338328679-28837-3-git-send-email-andros@netapp.com> In-Reply-To: <1338328679-28837-1-git-send-email-andros@netapp.com> References: <1338328679-28837-1-git-send-email-andros@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Weston Andros Adamson Signed-off-by: Weston Andros Adamson --- xdr/xdrgen.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/xdr/xdrgen.py b/xdr/xdrgen.py index 0148f96..72954d1 100755 --- a/xdr/xdrgen.py +++ b/xdr/xdrgen.py @@ -786,6 +786,8 @@ class Info(object): if t.type in name_dict: p = name_dict[t.type] if p.parent and p.type == 'enum': + if t.array: + return "','.join([ const.%s.get(x, x) for x in self.%s ])" % (p.id, t.id) return "const.%s.get(self.%s, self.%s)" % (p.id, t.id, t.id) return "repr(self.%s)" % t.id indent2 = prefix + indent -- 1.7.7.6