Merge "Remove the wrong method from MigrateMaintenanceHost"

This commit is contained in:
Jenkins
2016-07-15 07:59:32 +00:00
committed by Gerrit Code Review

View File

@@ -92,22 +92,6 @@ class MigrateMaintenanceHost(tables.LinkAction):
url = "horizon:admin:hypervisors:compute:migrate_host"
action_type = "danger"
@staticmethod
def action_present(count):
return ungettext_lazy(
u"Migrate Host",
u"Migrate Hosts",
count
)
@staticmethod
def action_past(count):
return ungettext_lazy(
u"Migrated Host",
u"Migrated Hosts",
count
)
def allowed(self, request, service):
if not api.nova.extension_supported('AdminActions', request):
return False