diff options
Diffstat (limited to 'src/resource_inventory/models.py')
-rw-r--r-- | src/resource_inventory/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py index 6386bf3..f462ac5 100644 --- a/src/resource_inventory/models.py +++ b/src/resource_inventory/models.py @@ -416,6 +416,10 @@ class Host(Resource): "ipmi_create": str(ipmi) } + def release(self): + self.booked = False + self.save() + class Interface(models.Model): id = models.AutoField(primary_key=True) |