Merge "Fix coverity check FORWARD_NULL error"

This commit is contained in:
Zuul 2019-08-15 10:34:48 +00:00 committed by Gerrit Code Review
commit 4293d21186
3 changed files with 3 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class ResourceFailure(HeatExceptionWithPath):
path = res_path
else:
self.exc = None
res_failed = 'Resource %s failed: ' % action.upper()
res_failed = 'Resource %s failed: ' % self.action.upper()
if res_failed in exception_or_error:
(error, message, new_path) = self._from_status_reason(
exception_or_error)

View File

@ -558,6 +558,7 @@ class Instance(resource.Resource, sh.SchedulerHintsMixin):
if server is not None:
self.resource_id_set(server.id)
assert server is not None
creator = progress.ServerCreateProgress(server.id)
attachers = []
for vol_id, device in self.volumes():

View File

@ -884,6 +884,7 @@ class Server(server_base.BaseServer, sh.SchedulerHintsMixin,
if server is not None:
self.resource_id_set(server.id)
assert server is not None
return server.id
def check_create_complete(self, server_id):