mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
Save hostnames, not IP addresses, for HA.
This commit is contained in:
@@ -23,7 +23,7 @@ class Instance(models.Model):
|
||||
objects = InstanceManager()
|
||||
|
||||
uuid = models.CharField(max_length=40, unique=True)
|
||||
ip_address = models.GenericIPAddressField(protocol='both', unpack_ipv4=True)
|
||||
hostname = models.CharField(max_length=250, unique=True)
|
||||
primary = models.BooleanField(default=False)
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
|
||||
Reference in New Issue
Block a user