Skip to content

[BUG] Issue with JSON format of Export host #372

@arsinux

Description

@arsinux

Title

The Export host button generates a JSON which can not be imported properly due to json formatting issue.

Platform

N/A

Server Installation Method

Docker

Version

1.9.0

Troubleshooting

The Problem

This is the exported JSON format

{
  "name": "",
  "ip": "",
  "port": 22,
  "username": "",
  "authType": "",
  "password": "",
...
}

While the format that import accepts is:

{
  "hosts": [
    {
      "name": "Web Server - Production",
      "ip": "192.168.1.100",
      "port": 22,
      "username": "admin",
      "authType": "password",
      "password": "your_secure_password_here",
...
    }
  ]
}

How to Reproduce

  1. Export a host.
  2. Try to import it.
  3. It does not work!

Additional Context

Exporting and importing requires manual changes to the JSON file so it follows the sample JSON file format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Bugs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions