Merge "Fix coverity check FORWARD_NULL error"
This commit is contained in:
commit
4293d21186
@ -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)
|
||||
|
@ -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():
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user