Browse Source

Merge "elif replace if"

tags/13.0.0.0b3
Zuul Gerrit Code Review 2 years ago
parent
commit
ddd73b6cbf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      openstack_dashboard/api/nova.py

+ 2
- 2
openstack_dashboard/api/nova.py View File

@@ -134,9 +134,9 @@ class Server(base.APIResourceWrapper):

if not self.image:
return None
if hasattr(self.image, 'name'):
elif hasattr(self.image, 'name'):
return self.image.name
if 'name' in self.image:
elif 'name' in self.image:
return self.image['name']
else:
try:


Loading…
Cancel
Save