Skip to content

Commit

Permalink
Check the correct variable vm_info_list
Browse files Browse the repository at this point in the history
For checking the status of all port tuples, we first collect all info
in vm_info_list, but when we check the final status, we were using
the wrong variable name.

Change-Id: I67ac4097ddfbcf4e19a918e37681f12dc3bdb4c5
Closes-Bug: 1541940
(cherry picked from commit 67dd602fe3bed643ecbc3d1b7927af02db284653)
  • Loading branch information
Sachin Bansal committed Feb 26, 2016
1 parent e48ec98 commit e655f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/schema-transformer/config_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2435,7 +2435,7 @@ def _get_vm_pt_info(self, vm_pt, mode):
vm_pt.name)
return None
return vm_info
# end _get_vm_info
# end _get_vm_pt_info

def check_create(self):
# Check if this service chain can be created:
Expand Down Expand Up @@ -2477,7 +2477,7 @@ def check_create(self):
if vm_info:
vm_info_list.append(vm_info)
# end for service_vm
if not vm_info:
if not vm_info_list:
return None
virtualization_type = si.get_virtualization_type()
ret_dict[service] = {'mode': mode, 'vm_list': vm_info_list,
Expand Down

0 comments on commit e655f94

Please sign in to comment.