ironic/ironic
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
..
api Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
cmd Fix 'spacing' parameters for periodic tasks 2014-03-19 15:20:17 +02:00
common Merge "Use DiskPartitioner" 2014-04-18 00:44:40 +00:00
conductor Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
db Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
drivers Merge "Use DiskPartitioner" 2014-04-18 00:44:40 +00:00
locale Imported Translations from Transifex 2014-04-15 06:07:43 +00:00
nova Complete wrapping ironic client calls 2014-04-18 08:36:07 -04:00
objects Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
openstack Merge "Sync oslo/config/generator" 2014-04-15 08:56:47 +00:00
tests Clean up calls to get_node() 2014-04-19 16:18:32 -07:00
__init__.py Move eventlent monkeypatch out of cmd/ 2014-02-08 00:11:56 -08:00
netconf.py Remove extraneous vim configuration comments for ironic 2014-02-26 09:24:48 +08:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00