commit | 1e67bb432532f808ac244f0799bfde56bc559ee8 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Thu Jul 03 17:58:10 2014 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Thu Jul 03 17:58:10 2014 -0700 |
tree | 12f86ed0dd29f7320277d5a8a9f3a204cb74897f | |
parent | 64fbca7cd04e11224be852151c945c408483ca33 [diff] |
fix modelgen error on upgradeFrom_rel_+
diff --git a/planetstack/apigen/modelgen b/planetstack/apigen/modelgen index ef2730b..b403c0b 100755 --- a/planetstack/apigen/modelgen +++ b/planetstack/apigen/modelgen
@@ -113,7 +113,11 @@ cobj = copy.deepcopy(obj) cobj.multi=True refobj.refs.append(cobj) - + + # deal with upgradeFrom_rel_+ + if (related_name.endswith("+")): + continue + if (related_name!='+' and related_name.lower()!=str(obj).lower()): cobj = copy.deepcopy(obj) cobj.multi = True