summaryrefslogtreecommitdiff
path: root/ironic/objects/conductor.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john.l.villalovos@intel.com>2016-02-05 15:55:53 -0800
committerJohn L. Villalovos <john.l.villalovos@intel.com>2016-02-24 06:33:31 -0800
commitbbee55df15004a08314217dc1b63bcc80f728283 (patch)
tree07cb7bd79587eea8d53c54282b909675dff355f8 /ironic/objects/conductor.py
parent86198097ec0bb4c19ff325ee1477c40f578103ca (diff)
downloadironic-bbee55df15004a08314217dc1b63bcc80f728283.tar.gz
Move _from_db_object() into base class
Had five copies of the def _from_db_object() function in various classes. Move this function into their common base class. Change-Id: I543386a708d80f7c89455e556e2abc6d532661b0
Diffstat (limited to 'ironic/objects/conductor.py')
-rw-r--r--ironic/objects/conductor.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/ironic/objects/conductor.py b/ironic/objects/conductor.py
index e0028e93a..56ce7cdb7 100644
--- a/ironic/objects/conductor.py
+++ b/ironic/objects/conductor.py
@@ -33,15 +33,6 @@ class Conductor(base.IronicObject, object_base.VersionedObjectDictCompat):
'hostname': object_fields.StringField(),
}
- @staticmethod
- def _from_db_object(conductor, db_obj):
- """Converts a database entity to a formal object."""
- for field in conductor.fields:
- conductor[field] = db_obj[field]
-
- conductor.obj_reset_changes()
- return conductor
-
# NOTE(xek): We don't want to enable RPC on this call just yet. Remotable
# methods can be used in the future to replace current explicit RPC calls.
# Implications of calling new remote procedures should be thought through.