diff options
Diffstat (limited to 'src/resource_inventory/models.py')
-rw-r--r-- | src/resource_inventory/models.py | 4 |
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 |