diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-23 10:04:14 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-24 11:57:43 -0700 |
| commit | ca2c5d3d32270210986c76158c0b321aa75e735a (patch) | |
| tree | e51da0ebca1f78b2315e1c538db51cf3a3292b94 /python | |
| parent | f09aa106ee66e387d68c339cdcd7426a01c4bf8d (diff) | |
| download | openvswitch-ca2c5d3d32270210986c76158c0b321aa75e735a.tar.gz | |
ovs.db.types: Use toAtomicType() instead of open-coding it.
Suggested-by: Reid Price <reid@nicira.com>
Diffstat (limited to 'python')
| -rw-r--r-- | python/ovs/db/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py index 416d7456b..5f50d65ea 100644 --- a/python/ovs/db/types.py +++ b/python/ovs/db/types.py @@ -337,8 +337,8 @@ class BaseType(object): def cInitBaseType(self, indent, var): stmts = [] - stmts.append('ovsdb_base_type_init(&%s, OVSDB_TYPE_%s);' % ( - var, self.type.to_string().upper()),) + stmts.append('ovsdb_base_type_init(&%s, %s);' % ( + var, self.toAtomicType())) if self.enum: stmts.append("%s.enum_ = xmalloc(sizeof *%s.enum_);" % (var, var)) |
