From c58908bef6091d85fc95f3b9873b4fdcf113e99b Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 22 Mar 2011 21:39:31 +0000 Subject: QPID-3159 - Applied patch from Angus Salkeld git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1084359 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/managementgen/qmfgen/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp') diff --git a/cpp/managementgen/qmfgen/schema.py b/cpp/managementgen/qmfgen/schema.py index afdfe42639..59e951fb6e 100755 --- a/cpp/managementgen/qmfgen/schema.py +++ b/cpp/managementgen/qmfgen/schema.py @@ -1731,9 +1731,9 @@ class SchemaPackage: stream.write(" qmf::SchemaProperty arg(\"%s\", %s);\n" % (arg.name, typeName)) if subType: stream.write(" arg.setSubtype(\"%s\");\n" % subType) - if stat.unit: + if arg.unit: stream.write(" arg.setUnit(\"%s\");\n" % arg.unit) - if stat.desc: + if arg.desc: stream.write(" arg.setDesc(\"%s\");\n" % arg.desc) stream.write(" arg.setDirection(%s);\n" % self.qmfv2Dir(arg.dir)) stream.write(" method.addArgument(arg);\n") -- cgit v1.2.1