diff options
author | Kanagaraj Manickam <kanagaraj.manickam@hp.com> | 2015-03-18 15:03:37 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@hp.com> | 2015-03-18 18:20:00 +0530 |
commit | 646c08396e637578ab1898750e7c2d79cb096a5f (patch) | |
tree | 0551cf2b217577575cba009dbfce157e5840e965 /heat/engine/service_software_config.py | |
parent | ead3f0acf213fe1f938377e5c4bb34dd9efce036 (diff) | |
download | heat-646c08396e637578ab1898750e7c2d79cb096a5f.tar.gz |
Fixes SoftwareConfigService to use Resource object
Fixes SoftwareConfigService to use Resource object
in place resource db api.
Implements blueprint versioned-objects
Change-Id: Idd9b1215275d899bbf8a7c1a603af9c35dda3008
Diffstat (limited to 'heat/engine/service_software_config.py')
-rw-r--r-- | heat/engine/service_software_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/heat/engine/service_software_config.py b/heat/engine/service_software_config.py index b7b5a62c3..19d01dbd0 100644 --- a/heat/engine/service_software_config.py +++ b/heat/engine/service_software_config.py @@ -20,8 +20,8 @@ from six.moves.urllib import parse as urlparse from heat.common.i18n import _ from heat.common.i18n import _LI -from heat.db import api as db_api from heat.engine import api +from heat.objects import resource as resource_object from heat.objects import software_config as software_config_object from heat.objects import software_deployment as software_deployment_object from heat.openstack.common import service @@ -72,7 +72,8 @@ class SoftwareConfigService(service.Service): return result def _push_metadata_software_deployments(self, cnxt, server_id): - rs = db_api.resource_get_by_physical_resource_id(cnxt, server_id) + rs = (resource_object.Resource. + get_by_physical_resource_id(cnxt, server_id)) if not rs: return deployments = self.metadata_software_deployments(cnxt, server_id) |