f5devcentral / vscode-f5

Let the F5 VSCode extension supercharge your workflows with schema validation, rest client, fast templates, and so much more!!!
https://f5devcentral.github.io/vscode-f5/#/
Apache License 2.0
57 stars 14 forks source link

Import Devices only takes one device at a time #248

Open CarlB-dev opened 5 months ago

CarlB-dev commented 5 months ago

Using the format described here - https://f5devcentral.github.io/vscode-f5/#/device_importing?id=json-object-list-import-structure When I import multiple devices, I see it add a device and the IP address changes as it parses the file and stops at the last one in the JSON structure. If I repeat, it will add a new device and then stop at the next to the last one in the JSON file, and this repeats until all of the devices in the JSON file are in place.

I originally discovered this on a code server implementation of the extension, but can replicate it locally on my windows 10 machine as well. Both versions of the extension are 3.16.1

[
    {
        "device": "admin@10.1.1.9",
        "password": "password",
        "provider": "tmos"
    },
    {
        "device": "admin@10.1.1.5",
        "password": "password",
        "provider": "tmos"
    },
    {
        "device": "admin@10.1.1.8",
        "password": "password",
        "provider": "tmos"
    },
    {
        "device": "admin@10.1.1.6",
        "password": "password",
        "provider": "tmos"
    }
]
CarlB-dev commented 5 months ago

chrome_o1KtWcUVst

DumpySquare commented 1 week ago

tracking for pending fix. deviceImport.ts line 78

https://github.com/f5devcentral/vscode-f5/blob/79f5f71c72491003ab97a5d755077cb5c8766c7e/src/deviceImport.ts#L86