Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8158 from ganeshhubale/fix-5.10-attr-osp
Browse files Browse the repository at this point in the history
[1LP][RFR] Fixed AttributeError of OpenStackInstance object for 5.10z
  • Loading branch information
izapolsk committed Nov 19, 2018
2 parents 279c5f0 + b87aea6 commit b6dd619
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cfme/cloud/instance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,14 @@ def is_displayed(self):
class InstanceProviderAllView(CloudInstanceView):
@property
def is_displayed(self):
try:
provider = self.context['object'].filters.get('provider').name
except AttributeError:
provider = self.context['object'].provider.name
return (
self.in_cloud_instance and
self.entities.title.text == 'Instances under Provider "{}"'
.format(self.context['object'].filters.get('provider').name) and
.format(provider) and
self.sidebar.instances_by_provider.is_opened)

toolbar = View.nested(VMToolbar)
Expand Down

0 comments on commit b6dd619

Please sign in to comment.