aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit36c012ef86233a323434be5e4c6de524188591e9 (patch)
tree78a42cebef1bb3d3a837863fe2c788475d5f02f8 /src/resource_inventory/models.py
parentb5bd056d00d76bac14649aae9e9af7b181e54570 (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 'src/resource_inventory/models.py')
-rw-r--r--src/resource_inventory/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py
index 5f7f3d3..4e3974e 100644
--- a/src/resource_inventory/models.py
+++ b/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