diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/account/models.py | 2 | ||||
-rw-r--r-- | src/api/models.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/account/models.py b/src/account/models.py index 5d83ddf..6828ee1 100644 --- a/src/account/models.py +++ b/src/account/models.py @@ -108,6 +108,8 @@ class VlanManager(models.Model): if len(allocated) != count: raise ResourceAvailabilityException("can't allocate the vlans requested") + return allocated + def get_public_vlan(self): """Return reference to an available public network without reserving it.""" return PublicNetwork.objects.filter(lab=self.lab_set.first(), in_use=False).first() diff --git a/src/api/models.py b/src/api/models.py index 960fc26..ce62ea5 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -384,7 +384,7 @@ class Job(models.Model): class TaskConfig(models.Model): - state = models.IntegerField(default=ConfigState.CLEAN) + state = models.IntegerField(default=ConfigState.NEW) keys = set() # TODO: This needs to be an instance variable, not a class variable delta_keys_list = models.CharField(max_length=200, default="[]") |