mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
Merge pull request #2088 from ryanpetrello/fix-2085
default instance capacity to zero
This commit is contained in:
@@ -96,7 +96,7 @@ class InstanceManager(models.Manager):
|
|||||||
instance = self.filter(hostname=hostname)
|
instance = self.filter(hostname=hostname)
|
||||||
if instance.exists():
|
if instance.exists():
|
||||||
return (False, instance[0])
|
return (False, instance[0])
|
||||||
instance = self.create(uuid=uuid, hostname=hostname)
|
instance = self.create(uuid=uuid, hostname=hostname, capacity=0)
|
||||||
return (True, instance)
|
return (True, instance)
|
||||||
|
|
||||||
def get_or_register(self):
|
def get_or_register(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user