forked from openstack/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the get_nw_info_for_instance() method in nova/compute/utils. If an instance object has no 'info_cache' (means we lack an entry in the instance_info_caches table for the instance), don't try to access the 'network_info' attribute. Just return a network model with empty networking information like the dict version of an instance would do. Change-Id: Ib1f49f10cefeefc55a87fea69b6fbc772c978dca Closes-bug: 1243291
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters