summaryrefslogtreecommitdiffstats
path: root/dashboard/src/resource_inventory/models.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-03-06 11:47:23 -0500
committerParker Berberian <pberberian@iol.unh.edu>2019-03-06 11:47:23 -0500
commit2f9786ec78b1fd6181405bb9938ab90767838e37 (patch)
tree02c0fee3c6c26794c623c093aca4f930eb0ba401 /dashboard/src/resource_inventory/models.py
parentcb967841ea9bbab7453567cec1a7195089b60a0e (diff)
Fix migration and models
We missed a few migrations Change-Id: I58e1abb53e5295ec6c6228906d6eb2fd7fea0b84 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/resource_inventory/models.py')
-rw-r--r--dashboard/src/resource_inventory/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dashboard/src/resource_inventory/models.py b/dashboard/src/resource_inventory/models.py
index 5f7f3d3..4e3974e 100644
--- a/dashboard/src/resource_inventory/models.py
+++ b/dashboard/src/resource_inventory/models.py
@@ -301,14 +301,14 @@ class RemoteInfo(models.Model):
def get_default_remote_info():
- RemoteInfo.objects.get_or_create(
+ return RemoteInfo.objects.get_or_create(
address="default",
mac_address="default",
password="default",
user="default",
management_type="default",
versions="[default]"
- )
+ )[0].pk
# Concrete host, actual machine in a lab