ironic/ironic/objects
Chris Behrens 2192f2848e Clean up calls to get_node()
This patch removes all direct calls to dbapi's get_node(). They are
replaced either by Node.get(), Node.get_by_id(), or Node.get_by_uuid()
calls.

Additional detail about the changes:

1) Break DBAPI get_node() into get_node_by_id() and get_node_by_uuid().
   Let's be explicit about which type we're passing. This allows
   Node.get_by_uuid() to work exactly how its named. Also, do not
   return an object from the DB API calls. The Node object itself will
   do the conversion.
2) Adds Node.get_by_id() to compliment the current Node.get_by_uuid()
   for places you are querying by the ID.
3) Adds Node.get() so that you can still have a single method to use
   to pass either and ID or a UUID.
4) Make all of the Node.get* calls set the 'context' so that you can
   later just node.save() without passing it. Doc strings have been
   updated to clarify what 'context' is for.

Change-Id: I995891b1645056a5b15c48e37b8bcd1e299ac468
2014-04-19 16:18:32 -07:00
..
__init__.py Conductors maintan driver list in the DB 2013-10-24 17:28:09 -07:00
base.py Sync object list stuff from Nova 2014-04-10 13:45:58 -07:00
chassis.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
conductor.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
node.py Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
port.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
utils.py Remove 'basestring' from objects utils 2013-11-07 08:32:40 +00:00