1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Removing unicode fix-related lines in ha.py

This commit is contained in:
Bianca 2018-11-14 17:40:25 -05:00 committed by beeankha
parent bf5657a06a
commit f1e3be5ec8

View File

@ -152,10 +152,6 @@ class Instance(HasPolicyEditsMixin, BaseModel):
self.save(update_fields=['capacity', 'version', 'modified', 'cpu',
'memory', 'cpu_capacity', 'mem_capacity'])
def clean_hostname(self):
return self.hostname
class InstanceGroup(HasPolicyEditsMixin, BaseModel, RelatedJobsMixin):
"""A model representing a Queue/Group of AWX Instances."""
@ -222,8 +218,6 @@ class InstanceGroup(HasPolicyEditsMixin, BaseModel, RelatedJobsMixin):
class Meta:
app_label = 'main'
def clean_name(self):
return self.name
def fit_task_to_most_remaining_capacity_instance(self, task):
instance_most_capacity = None